feat(paths): add global and project theme path helpers
This commit is contained in:
@@ -93,6 +93,19 @@ def get_project_personas_path(project_root: Path) -> Path:
|
||||
"""
|
||||
return project_root / "project_personas.toml"
|
||||
|
||||
def get_global_themes_path() -> Path:
|
||||
"""
|
||||
[C: src/theme_2.py:load_themes_from_disk]
|
||||
"""
|
||||
root_dir = Path(__file__).resolve().parent.parent
|
||||
return Path(os.environ.get("SLOP_GLOBAL_THEMES", root_dir / "themes"))
|
||||
|
||||
def get_project_themes_path(project_root: Path) -> Path:
|
||||
"""
|
||||
[C: src/theme_2.py:load_themes_from_disk]
|
||||
"""
|
||||
return project_root / "project_themes.toml"
|
||||
|
||||
def get_global_workspace_profiles_path() -> Path:
|
||||
"""
|
||||
[C: src/workspace_manager.py:WorkspaceManager._get_path, src/workspace_manager.py:WorkspaceManager.load_all_profiles]
|
||||
|
||||
Reference in New Issue
Block a user