forked from bartvdbraak/blender
f26c36c96b
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.
33 lines
708 B
Batchfile
33 lines
708 B
Batchfile
if NOT EXIST %PYTHON% (
|
|
echo python not found, required for this operation
|
|
exit /b 1
|
|
)
|
|
|
|
call "%~dp0\find_inkscape.cmd"
|
|
|
|
if EXIST "%INKSCAPE_BIN%" (
|
|
goto detect_inkscape_done
|
|
)
|
|
|
|
echo unable to locate inkscape, run "set inkscape_BIN=full_path_to_inkscape.exe"
|
|
exit /b 1
|
|
|
|
:detect_inkscape_done
|
|
|
|
call "%~dp0\find_blender.cmd"
|
|
|
|
if EXIST "%BLENDER_BIN%" (
|
|
goto detect_blender_done
|
|
)
|
|
|
|
echo unable to locate blender, run "set BLENDER_BIN=full_path_to_blender.exe"
|
|
exit /b 1
|
|
|
|
:detect_blender_done
|
|
|
|
%PYTHON% -B %BLENDER_DIR%\release\datafiles\blender_icons_update.py
|
|
%PYTHON% -B %BLENDER_DIR%\release\datafiles\prvicons_update.py
|
|
%PYTHON% -B %BLENDER_DIR%\release\datafiles\alert_icons_update.py
|
|
|
|
:EOF
|