Skip to content

Commit

Permalink
Changed the default cache directory on Windows.
Browse files Browse the repository at this point in the history
The default cache directory should not be in the Roaming profile
(%APPDATA%) but much rather in the Local profile (%LOCALAPPDATA%)
since there is no need to synchronize them between computers.
  • Loading branch information
mmaeusezahl committed Feb 7, 2021
1 parent 4c07803 commit b237fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyInstaller/configure.py
Expand Up @@ -65,7 +65,7 @@ def _get_pyinst_cache_dir():
if compat.getenv('PYINSTALLER_CONFIG_DIR'):
cache_dir = compat.getenv('PYINSTALLER_CONFIG_DIR')
elif is_win:
cache_dir = compat.getenv('APPDATA')
cache_dir = compat.getenv('LOCALAPPDATA')
if not cache_dir:
cache_dir = os.path.expanduser('~\\Application Data')
elif is_darwin:
Expand Down

0 comments on commit b237fc1

Please sign in to comment.