spr migrated books, and tester
This commit is contained in:
23
build.py
23
build.py
@@ -142,6 +142,29 @@ def copy_cfg(output_dir: Path, cfg_name: str | None):
|
||||
log.info(f" Copying {cfg_name} databrowse depot...")
|
||||
target = output_dir / "station" / "monitors" / "databrowse" / "depot"
|
||||
copy_path(room_databrowse, target)
|
||||
|
||||
# Copy room-specific tester tests if exists
|
||||
room_tests = room_cfg / "tester" / "tests"
|
||||
if room_tests.exists():
|
||||
log.info(f" Copying {cfg_name} tester tests...")
|
||||
target = output_dir / "station" / "tools" / "tester" / "tests"
|
||||
copy_path(room_tests, target)
|
||||
|
||||
# Copy room-specific monitors if exists
|
||||
room_monitors = room_cfg / "monitors"
|
||||
if room_monitors.exists():
|
||||
log.info(f" Copying {cfg_name} monitors...")
|
||||
for monitor in room_monitors.iterdir():
|
||||
if monitor.is_dir():
|
||||
target = output_dir / "station" / "monitors" / monitor.name
|
||||
copy_path(monitor, target)
|
||||
|
||||
# Copy room-specific models if exists
|
||||
room_models = room_cfg / "models"
|
||||
if room_models.exists():
|
||||
log.info(f" Copying {cfg_name} models...")
|
||||
target = output_dir / "models" / cfg_name
|
||||
copy_path(room_models, target)
|
||||
else:
|
||||
log.warning(f"Room config '{cfg_name}' not found at {room_cfg}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user