0
0
forked from blender/blender
blender/tests
Sergey Sharybin 2d3c9bcee8 Benchmark: Pack python expression into a single line
There should be no functional changes for the typical usecase,
but it allows to have more tricky setups like pointing to a
BAT script to override some configuration.

The issue is that BAT scripts do not support new lines in the
command line arguments. That's where single-line python expression
helps.

For example, it is possible to point benchmark script to a blender.bat
which contains

    blender.exe --python-expr "import bpy; bpy.context.preferences.addons['cycles'].preferences.use_oneapirt = False" %*

to have side-by-side numbers of oneAPI with and without HW RT.

Without this change the %* is which did not work: the BAT
script did not "see" part of the command line past the new line.

Pull Request: blender/blender#109006
2023-06-15 13:40:17 +02:00
..
blender_as_python_module Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
gtests macOS/GTests: simplify blender_test library linking 2023-04-19 09:05:43 +05:30
performance Benchmark: Pack python expression into a single line 2023-06-15 13:40:17 +02:00
python Cleanup: docstrings arguments part. 2023-05-30 11:55:08 +02:00
CMakeLists.txt CMake: add WITH_LIBS_PRECOMPILED option (UNIX only) 2023-01-19 17:10:42 +11:00