Files
test/release/windows/batch/blender_system_info.cmd.in
Campbell Barton 97179b10fb Refactor: make "sys_info" an internal module, rename for clarity
- Move sys_info into an internal module to avoid having so many
  top level modules for Blender's internal functionality.
- Rename system_info sub-modules that pre-fill URL's for clarity.
- Move top-level exception handling into the operator.
- Report an error if an unexpected exception occurs.
- Use `Exception` instead of `BaseException` as there is no reason to
  catch the additional exceptions.
- Remove use of sys_info from the command line example,
  replace with in-lined system info.
2024-09-06 11:11:26 +10:00

17 lines
614 B
Batchfile

@echo off
set BLENDER_INSTALL_DIRECTORY=%~dp0
set BLENDER_VERSION_FOLDER=%BLENDER_INSTALL_DIRECTORY%@BLENDER_VERSION@
set PYTHON_BIN=%BLENDER_VERSION_FOLDER%\python\bin\@PYTHON_EXECUTABLE_NAME_ONLY@
if exist "%PYTHON_BIN%" (
"%PYTHON_BIN%" -I "%BLENDER_VERSION_FOLDER%\scripts\modules\_bpy_internal\system_info\url_prefill_startup.py"
exit /b
)
echo ERROR: Failed to find python executable at: %PYTHON_BIN%
echo Possible causes include:
echo - Your Blender installation is corrupt or missing @PYTHON_EXECUTABLE_NAME_ONLY@.
echo - The location or name of @PYTHON_EXECUTABLE_NAME_ONLY@ has changed.
pause