File size: 382 Bytes
870b85a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
"""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)