Browse Source

makepanda: fix makepanda.bat to look in Python 3.7 folder

rdb 6 years ago
parent
commit
a9759fab14
1 changed files with 8 additions and 2 deletions
  1. 8 2
      makepanda/makepanda.bat

+ 8 - 2
makepanda/makepanda.bat

@@ -8,14 +8,20 @@ REM If we can find both, then run 'makepanda'.
 REM
 
 if %PROCESSOR_ARCHITECTURE% == AMD64 (
-  set pythondir=win-python-x64
+  set suffix=-x64
 ) else (
-  set pythondir=win-python
+  set suffix=
 )
 
 set thirdparty=thirdparty
 if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY%
 
+if exist %thirdparty%\win-python3.7%suffix%\python.exe (
+  set pythondir=win-python3.7%suffix%
+) else (
+  set pythondir=win-python%suffix%
+)
+
 if not exist makepanda\makepanda.py goto :missing1
 if not exist %thirdparty%\%pythondir%\python.exe goto :missing2
 %thirdparty%\%pythondir%\python.exe makepanda\makepanda.py %*