Expand description
Config file listing, the workspace path boundary, and JSON load/save for the Project, Speakers, Cast Config and SFX Config tabs.
Statics§
Functions§
- active_
show_ name - The show whose slug is the active one, for the Setup dropdown.
- check_
workspace_ path _check_workspace_path(path):Errwhenpathresolves outside the workspace root.- find_
cast_ configs _find_cast_configs().- find_
sfx_ configs _find_sfx_configs().- find_
speakers_ configs _find_speakers_configs().- list_
available_ shows _list_available_shows(): show names fromconfigs/*/project.json.- load_
config_ file _load_config_file(path, label): the file’s text for an editor, or a//comment explaining why not.- load_
project_ json load_project_json()→(content, path).- project_
json_ path _get_project_json_path(): the active show’s project.json when it exists, else the legacy root one.- resolve_
lenient Path.resolve()withoutstrict: symlinks followed as far as the path exists, the rest normalised lexically.- save_
config_ file save_cast_config/save_speakers_config/save_sfx_config: validate, pretty-print and write.whatnames the file in the activity log.- save_
project_ json save_project_json(text).- strings 🔒
- write_
json 🔒 json.dump(data, f, indent=2)plus a newline.