diff --git a/modules/zluda_installer.py b/modules/zluda_installer.py index 347f92b06..9f9a6bc9f 100644 --- a/modules/zluda_installer.py +++ b/modules/zluda_installer.py @@ -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: