fontlabapp.core.legacy.examples · declarations 001
Back to fontlabapp.core.legacy.examples
launch
launch(path: str | Path) -> dict[str, Any]
Run a relocated script beside its resources and retain its globals.
Ordinary scripts run as main. Rescued ports use build(qt) with the preserved part1 host/ownership helpers; their live handle is returned under rescued_handle and reused until closed. No QApplication is created. Retained GetGo entries bind their original examples namespace explicitly; an already loaded foreign namespace is refused before executing the entry. Only cwd and sys.path are restored; script effects and exceptions propagate.