From dc87fb2ee570a198894d2d27ec1a607e363df168 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:23:21 -0400 Subject: [PATCH] Small fix --- tools/copy_deluxe_sounds.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/copy_deluxe_sounds.py b/tools/copy_deluxe_sounds.py index 6cb188026..ee9d62bc6 100644 --- a/tools/copy_deluxe_sounds.py +++ b/tools/copy_deluxe_sounds.py @@ -15,6 +15,8 @@ if not os.path.exists(SAMPLE_PATH): os.makedirs(SAMPLE_PATH) for path, files in instrument_targets.items(): - fileList = files if files[0] != "*" else os.listdir(path) - for file in fileList: - shutil.copyfile(os.path.join(path, file), os.path.join(SAMPLE_PATH, file)) \ No newline at end of file + file_list = files if files[0] != "*" else os.listdir(path) + for file in file_list: + file_path = os.path.join(SAMPLE_PATH, file) + if not os.path.exists(file_path): + shutil.copyfile(os.path.join(path, file), file_path) \ No newline at end of file