Skip to content

Commit

Permalink
use symlink if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Feb 15, 2025
1 parent 067512b commit 23134eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/zluda_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ def get_blaslt_enabled() -> bool:

def link_or_copy(src: os.PathLike, dst: os.PathLike):
try:
os.link(src, dst)
os.symlink(src, dst)
except Exception:
shutil.copyfile(src, dst)
try:
os.link(src, dst)
except Exception:
shutil.copyfile(src, dst)


def make_copy() -> None:
Expand Down

0 comments on commit 23134eb

Please sign in to comment.