Open dajuric opened 4 years ago
import bpy, os
bpy.ops.wm.open_mainfile(filepath=os.path.abspath(r"E:\BlenderProjects\myProject.blend"))
I saved new file with blender 4.1 Results of run script:
I saved another file with 2.9. fails to open with the same version.
Therefore it might be related to #182 or simply issue with Blender itself. The second is more likely.
There is a script test.py which only calls:
bpy.ops.wm.open_mainfile(filepath=os.path.abspath("./myProject.blend"))
The evaluated file path is OK. While the call is being executed the following error happens:
after which, the Blender process crashes and test.py becomes read-only.
If a script is executed using a shell like:
blender --background --python test.py
everything executes OK