Skip to content

Commit

Permalink
Update NSLGameScanner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
moraroy committed Jun 22, 2024
1 parent 9c923e9 commit b427eb2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions NSLGameScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,13 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
# Define the path of the symbolic link
symlink_path = os.path.join(compatdata_dir, 'NonSteamLaunchers')

# Create a symbolic link to the renamed NonSteamLaunchers folder
os.symlink(new_path, symlink_path)
# Check if the symlink already exists
if not os.path.islink(symlink_path):
# Create a symbolic link to the renamed NonSteamLaunchers folder
os.symlink(new_path, symlink_path)
else:
print('Symlink for NonSteamLaunchers already exists')


#End of Refactoring python code from .sh file

Expand Down

0 comments on commit b427eb2

Please sign in to comment.