MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_org_config_path

Function get_org_config_path

security.py:551–565  ·  view source on GitHub ↗

Get the organization-level config file path. Returns: Path to ~/.autoforge/config.yaml (falls back to ~/.autocoder/config.yaml)

()

Source from the content-addressed store, hash-verified

549
550
551def get_org_config_path() -> Path:
552 """
553 Get the organization-level config file path.
554
555 Returns:
556 Path to ~/.autoforge/config.yaml (falls back to ~/.autocoder/config.yaml)
557 """
558 new_path = Path.home() / ".autoforge" / "config.yaml"
559 if new_path.exists():
560 return new_path
561 # Backward compatibility: check old location
562 old_path = Path.home() / ".autocoder" / "config.yaml"
563 if old_path.exists():
564 return old_path
565 return new_path
566
567
568def load_org_config() -> Optional[dict]:

Callers 1

load_org_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected