- @REM We have Python, now test for FreezePython application\r
- if not defined PYTHON_FREEZER_PATH (\r
- echo.\r
- echo !!! WARNING !!! PYTHON_FREEZER_PATH environment variable is not set.\r
- echo Setup environment to run Python scripts directly.\r
- echo.\r
- set "PATH=%PATH%;%BASE_TOOLS_PATH%\BinWrappers\WindowsLike"\r
+if defined PYTHON_HOME (\r
+ if EXIST "%PYTHON_HOME%" (\r
+ set PYTHON=%PYTHON_HOME%\python.exe\r
+ goto check_freezer_path\r
+ )\r
+ )\r
+if defined PYTHONHOME (\r
+ if EXIST "%PYTHONHOME%" (\r
+ set PYTHON_HOME=%PYTHONHOME%\r
+ set PYTHON=%PYTHON_HOME%\python.exe\r
+ goto check_freezer_path\r
+ )\r