fontlab_glyport.bootstrap · declarations 001
Back to fontlab_glyport.bootstrap
activate
activate(*, profile: str = 'glyphs4', namespace: dict | None = None, cocoa_backend: str = 'auto') -> Activation
Enable ordinary Glyphs imports in FontLab's GUI thread until deactivate.
Existing compatibility-name modules are refused, including foreign child modules. Source rewriting and scoped dependency routing remain the domain of run_script/install_plugin. GlyphsApp exports are supplied in caller globals (or explicit namespace); conflicting values are refused. Repeating the same profile returns its handle and can bind another script namespace.
deactivate
deactivate() -> None
Close the retained activation; repeated calls are harmless.