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: