Changeset View
Changeset View
Standalone View
Standalone View
tests/python/modules/test_utils.py
| Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | def run_blender(self, filepath: str, python_script: str, timeout: int=300) -> str: | ||||
| blendfile = self.testdir / filepath if filepath else "" | blendfile = self.testdir / filepath if filepath else "" | ||||
| command = [ | command = [ | ||||
| self.blender, | self.blender, | ||||
| '--background', | '--background', | ||||
| '-noaudio', | '-noaudio', | ||||
| '--factory-startup', | '--factory-startup', | ||||
| '--enable-autoexec', | '--enable-autoexec', | ||||
| '--debug-memory', | |||||
| '--debug-exit-on-error', | |||||
| ] | ] | ||||
| if blendfile: | if blendfile: | ||||
| command.append(str(blendfile)) | command.append(str(blendfile)) | ||||
| command.extend([ | command.extend([ | ||||
| '--python-exit-code', '47', | '--python-exit-code', '47', | ||||
| '--python-expr', python_script, | '--python-expr', python_script, | ||||
| Show All 10 Lines | |||||