workspace(feat): builder registry + sys.path sandbox · tmux-python/tmuxp@33eb1b6 · GitHub
Skip to content

Commit 33eb1b6

Browse files
committed
workspace(feat): builder registry + sys.path sandbox
why: A workspace selects a builder by name or import path, and a builder may live outside tmuxp's environment. Resolution and trusted imports belong in one place, separate from the builder itself. what: - Add builder/registry.py: resolve_builder_class (module:attr, dotted path, or tmuxp.workspace_builders entry point), resolve_builder_paths, available_builders, and a prepended_sys_path sandbox (no site.addsitedir) - Export the registry surface from the builder package
1 parent 0afcbb9 commit 33eb1b6

2 files changed

Lines changed: 337 additions & 0 deletions

File tree

‎src/tmuxp/workspace/builder/__init__.py‎

Lines changed: 12 additions & 0 deletions
Lines changed: 325 additions & 0 deletions

0 commit comments

Comments
 (0)