From 23134eba6aa4716b346d04f0574fbc81fe849db6 Mon Sep 17 00:00:00 2001 From: Seunghoon Lee Date: Sat, 15 Feb 2025 16:37:20 +0900 Subject: [PATCH] use symlink if possible --- modules/zluda_installer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: