We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 008720f commit 5d54c1cCopy full SHA for 5d54c1c
ou_dedetai/constants.py
@@ -44,11 +44,7 @@ def get_runmode() -> str:
44
if RUNMODE == 'snap':
45
cache_dir = Path(os.getenv('SNAP_USER_COMMON')) / '.cache'
46
else:
47
- try:
48
- cache_dir = Path(os.getenv('XDG_CACHE_HOME'))
49
- except TypeError:
50
- cache_dir = Path(os.getenv('HOME')) / '.cache'
51
-
+ cache_dir = Path(os.getenv('XDG_CACHE_HOME'), Path.home() / '.cache')
52
53
# Set other run-time variables not set in the env.
54
DEFAULT_CONFIG_PATH = os.path.expanduser(f"~/.config/FaithLife-Community/{BINARY_NAME}.json") # noqa: E501
0 commit comments