Skip to content

Commit

Permalink
Ordering of rmtree to avoid exiting out with FileNotFound early
Browse files Browse the repository at this point in the history
  • Loading branch information
downthecrop committed Aug 13, 2021
1 parent dcf71ce commit a1b68f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cs2.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def check_process(process_name):
# Cleanup install files
print("Removing installation files")
try:
# Inflated installer
rmtree(drive+"\\PhSp_CS2_UE_Ret")
# Update files
rmtree(drive+"\\Program Files\\PSCS2")
# Inflated installer
rmtree(drive+"\\PhSp_CS2_UE_Ret")
except FileNotFoundError:
print("No installation files to cleanup")

Expand Down

0 comments on commit a1b68f0

Please sign in to comment.