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

Function get_config_dir

registry.py:137–149  ·  view source on GitHub ↗

Get the config directory: ~/.autoforge/ Automatically migrates from ~/.autocoder/ if needed. Returns: Path to ~/.autoforge/ (created if it doesn't exist)

()

Source from the content-addressed store, hash-verified

135
136
137def get_config_dir() -> Path:
138 """
139 Get the config directory: ~/.autoforge/
140
141 Automatically migrates from ~/.autocoder/ if needed.
142
143 Returns:
144 Path to ~/.autoforge/ (created if it doesn't exist)
145 """
146 _migrate_registry_dir()
147 config_dir = Path.home() / ".autoforge"
148 config_dir.mkdir(parents=True, exist_ok=True)
149 return config_dir
150
151
152def get_registry_path() -> Path:

Callers 1

get_registry_pathFunction · 0.85

Calls 1

_migrate_registry_dirFunction · 0.85

Tested by

no test coverage detected