From f3b3936fa9eb971d3a2019b60ddae32b638d0241 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sat, 29 Jun 2024 01:10:28 -0700 Subject: [PATCH] Update NSLGameScanner.py --- NSLGameScanner.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index fe42458..8e65ab3 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -620,17 +620,18 @@ for launcher_name, folder in folder_names.items(): else: print(f'{new_path} already exists and is not empty. Skipping renaming and symlinking.') continue # skip to the next iteration - # Rename the folder - os.rename(current_path, new_path) - print(f"Renamed {current_path} to {new_path}") - # Define the path of the symbolic link - symlink_path = os.path.join(compatdata_dir, folder) - print(f"Symlink path for {launcher_name}: {symlink_path}") + # Rename the folder + os.rename(current_path, new_path) + print(f"Renamed {current_path} to {new_path}") - # Create a symbolic link to the renamed folder - os.symlink(new_path, symlink_path) - print(f"Created symlink at {symlink_path} to {new_path}") + # Define the path of the symbolic link + symlink_path = os.path.join(compatdata_dir, folder) + print(f"Symlink path for {launcher_name}: {symlink_path}") + + # Create a symbolic link to the renamed folder + os.symlink(new_path, symlink_path) + print(f"Created symlink at {symlink_path} to {new_path}") else: print(f'App ID for {launcher_name} is not available yet.') else: