Skip to main content

Module configs

Module configs 

Source
Expand description

Config file listing, the workspace path boundary, and JSON load/save for the Project, Speakers, Cast Config and SFX Config tabs.

Statics§

LEGACY_SFX_RE 🔒

Functions§

active_show_name
The show whose slug is the active one, for the Setup dropdown.
check_workspace_path
_check_workspace_path(path): Err when path resolves 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 from configs/*/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() without strict: 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. what names 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.