RoboHome / code /robohome /src /artifact_runtime.py
RoboParty Release
Unify robohome source, assets and scenes delivery
3f15e9f
Raw History Blame Contribute Delete
382 Bytes
"""Opt-in asset-owned artifact reuse; scene decisions remain case-local."""
from pathlib import Path
def configure_artifact_reuse(runtime, root=None):
value = root or runtime.get('artifact_cache_root')
if value is None:
return
path = Path(value).expanduser().resolve()
path.mkdir(parents=True, exist_ok=True)
runtime['artifact_cache_root'] = str(path)