Skip to content

Commit e2acf27

Browse files
authored
Allow disabling the custom pycache location (#1983)
The MSIX Package Support Framework's file redirection wasn't working properly for ProgramData for some reason, leading to leftover files after uninstall, which is against MS Store policies. By allowing the desktop app to disable the custom pycache, the PSF's package root file redirection is able to work properly instead, storing __pycache__ folders in the per-app location that is cleaned on uninstall.
1 parent 7127aa2 commit e2acf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32env.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set GDAL_DRIVER_PATH=%GDALBASE%\gdalplugins
1515
set OSFMBASE=%ODMBASE%SuperBuild\install\bin\opensfm\bin
1616
set SBBIN=%ODMBASE%SuperBuild\install\bin
1717
set PDAL_DRIVER_PATH=%ODMBASE%SuperBuild\install\bin
18-
set PYTHONPYCACHEPREFIX=%PROGRAMDATA%\ODM\pycache
18+
if not defined ODMDONTSETPYCACHE set PYTHONPYCACHEPREFIX=%PROGRAMDATA%\ODM\pycache
1919

2020
set PATH=%GDALBASE%;%SBBIN%;%OSFMBASE%
2121
set PROJ_LIB=%GDALBASE%\data\proj

0 commit comments

Comments
 (0)