Skip to content

Commit

Permalink
fix improper cache path and add stable_builds.json to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
zeptofine committed Apr 5, 2024
1 parent c594215 commit a0b4648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ source/resources/styles/global.qss
Blender Launcher.ini
log_file.txt
nohup.out
stable_builds.json
6 changes: 3 additions & 3 deletions source/modules/_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def get_cache_path():
cache_path = os.getenv("LOCALAPPDATA")
elif platform == "Linux":
# Borrowed from platformdirs
path = os.environ.get("XDG_CACHE_HOME", "")
if not path.strip():
path = os.path.expanduser("~/.cache")
cache_path = os.environ.get("XDG_CACHE_HOME", "")
if not cache_path.strip():
cache_path = os.path.expanduser("~/.cache")
elif platform == "macOS":
cache_path = os.path.expanduser("~/Library/Logs")
if not cache_path:
Expand Down

0 comments on commit a0b4648

Please sign in to comment.