mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
added skip check
This commit is contained in:
parent
c7edac533b
commit
548c4e41ff
@ -557,6 +557,10 @@ for launcher_name, folder in folder_names.items():
|
||||
# Define the new path of the folder
|
||||
new_path = os.path.join(compatdata_dir, str(appid))
|
||||
|
||||
# Check if the new path already exists
|
||||
if os.path.exists(new_path):
|
||||
print(f'{new_path} already exists. Skipping renaming.')
|
||||
else:
|
||||
# Rename the folder
|
||||
os.rename(current_path, new_path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user