Govern task context and advance execution pointer
This commit is contained in:
14
tools/web/generated/M16-GAP-00047.py
Normal file
14
tools/web/generated/M16-GAP-00047.py
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
import bpy
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
arguments = sys.argv[sys.argv.index("--") + 1:]
|
||||
if len(arguments) != 1:
|
||||
raise SystemExit("usage: blender -b --python M16-GAP-00047.py -- OUTPUT")
|
||||
output = pathlib.Path(arguments[0])
|
||||
bpy.ops.wm.open_mainfile(filepath=str(pathlib.Path(__file__).resolve().parents[3] / "tests/files/web/modifier_grease_pencil_scene.blend"), load_ui=False)
|
||||
bpy.ops.wm.save_as_mainfile(filepath=str(output.resolve()), check_existing=False, compress=True)
|
||||
Reference in New Issue
Block a user