diff options
author | Ray Molenkamp <github@lazydodo.com> | 2022-01-25 19:19:03 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2022-01-25 19:19:03 +0300 |
commit | f26c36c96b56b1cce159fb86c22bf657a094ad99 (patch) | |
tree | 5f01c036ad432616d7d6af514e62712c99a728e6 /build_files/windows/update_sources.cmd | |
parent | c813a1b3583e9a3bf17c75e16995ebadb046361a (diff) |
make.bat: unify python detection
Several sub commands tried on their own
to locate python, given I wanted to look
in several locations for a broader libdir
compatibility this is best done in a
central location.
Python 3.9 is still preferred, but if
3.10-3.12 are available that be accepted
as well.
note: this is about the python version
make.bat uses to run various python helper
scripts, this change has no influence on
the python version blender itself uses.
Diffstat (limited to 'build_files/windows/update_sources.cmd')
-rw-r--r-- | build_files/windows/update_sources.cmd | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/build_files/windows/update_sources.cmd b/build_files/windows/update_sources.cmd index f8fbd383090..f99ce43f40f 100644 --- a/build_files/windows/update_sources.cmd +++ b/build_files/windows/update_sources.cmd @@ -1,10 +1,7 @@ -if EXIST %PYTHON% ( - goto detect_python_done +if NOT EXIST %PYTHON% ( + echo python not found, required for this operation + exit /b 1 ) - -echo python not found in lib folder -exit /b 1 - :detect_python_done REM Use -B to avoid writing __pycache__ in lib directory and causing update conflicts. |