Add a script to collect system information when Blender isn't opening

This commit adds a python script that can collect some of the
information necessary to fill out a bug report.

The primary use case is to help users collect system information for
a bug report in the case that Blender can't open.

CMD and sh files are included to help users use the Python script.

Ref !122191
This commit is contained in:
Alaska
2024-09-03 12:59:59 +10:00
committed by Campbell Barton
parent d19c13eb82
commit 3196ef1636
7 changed files with 189 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
@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\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