Skip to content

Commit

Permalink
Expand user path properly on MacOS and Linux
Browse files Browse the repository at this point in the history
The config should now default to the correct path on those platforms
  • Loading branch information
JakeMartin-ICL committed Dec 16, 2022
1 parent 3a74108 commit 809fda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/steamStorageOptimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def load_config():
warn("No config file found.")
Path(config_dir).mkdir(parents=True, exist_ok=True)
if sys.platform == "linux" or sys.platform == "linux2":
install_dir = '~/.steam/steam/SteamApps'
install_dir = os.path.expanduser('~/.steam/steam/steamapps')
elif sys.platform == "darwin":
install_dir = '~/Library/Application Support/Steam/steamapps'
install_dir = os.path.expanduser('~/Library/Application Support/Steam/steamapps')
else:
install_dir = 'C:\\Program Files (x86)\\Steam\\steamapps'
warn(
Expand Down

0 comments on commit 809fda1

Please sign in to comment.