Skip to content

Commit

Permalink
Use Application Support instead of homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Dec 17, 2024
1 parent 5385b44 commit b182121
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,12 @@ def home_path(*path: str) -> str:
"""Returns path to a file in the user home's Archipelago directory."""
if hasattr(home_path, 'cached_path'):
pass
elif sys.platform.startswith('linux') or sys.platform == 'darwin':
elif sys.platform.startswith('linux'):
home_path.cached_path = os.path.expanduser('~/Archipelago')
os.makedirs(home_path.cached_path, 0o700, exist_ok=True)
elif sys.platform == 'darwin':
home_path.cached_path = os.path.expanduser('~/Library/Application Support/Archipelago')
os.makedirs(home_path.cached_path, 0o700, exist_ok=True)
else:
# not implemented
home_path.cached_path = local_path() # this will generate the same exceptions we got previously
Expand Down

0 comments on commit b182121

Please sign in to comment.