chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer, web workflow engine and protocol, tooling, docs and task records. Large generated evidence, user-testing archives, build snapshots and imported test assets remain untracked. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
13
tools/web/native_startup_resources.py
Normal file
13
tools/web/native_startup_resources.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""Relocate temporary resource paths in an isolated copy of a saved startup Main."""
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import bpy
|
||||
|
||||
sys.path.insert(0,str(Path(__file__).resolve().parent))
|
||||
from native_resources import portable_resource_paths
|
||||
|
||||
startup,workspace,destination=map(Path,sys.argv[sys.argv.index('--')+1:])
|
||||
bpy.ops.wm.open_mainfile(filepath=str(startup),load_ui=True,use_scripts=False)
|
||||
portable_resource_paths(workspace,destination)
|
||||
state=bpy.ops.wm.save_as_mainfile(filepath=str(startup),copy=True,relative_remap=False)
|
||||
if 'FINISHED' not in state:raise RuntimeError('STARTUP_RESOURCE_REWRITE_FAILED')
|
||||
Reference in New Issue
Block a user