From b237fc1aa3b0b76f54b13c4ecf42a1a53694951c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20M=C3=A4usezahl?= Date: Sun, 7 Feb 2021 18:16:55 +0100 Subject: [PATCH] Changed the default cache directory on Windows. 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. --- PyInstaller/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyInstaller/configure.py b/PyInstaller/configure.py index 530ff8ad4cb..e56350f547b 100644 --- a/PyInstaller/configure.py +++ b/PyInstaller/configure.py @@ -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: