MCPcopy Create free account
hub / github.com/T0UGH/codex-self-evolution-plugin / get_home_dir

Function get_home_dir

src/codex_self_evolution/config.py:39–47  ·  view source on GitHub ↗

Resolve the root dir that holds per-project state and user config. Precedence: ``$CODEX_SELF_EVOLUTION_HOME`` → ``~/.codex-self-evolution``.

()

Source from the content-addressed store, hash-verified

37
38
39def get_home_dir() -> Path:
40 """Resolve the root dir that holds per-project state and user config.
41
42 Precedence: ``$CODEX_SELF_EVOLUTION_HOME`` → ``~/.codex-self-evolution``.
43 """
44 override = os.environ.get(HOME_DIR_ENV)
45 if override:
46 return Path(override).expanduser().resolve()
47 return Path.home() / DEFAULT_HOME_DIRNAME
48
49
50def mangle_project_path(path: Path) -> str:

Callers 11

load_env_providerFunction · 0.85
build_pathsFunction · 0.85
collect_statusFunction · 0.85
get_config_pathFunction · 0.85
plan_migrationFunction · 0.85
configureFunction · 0.85
scan_all_projectsFunction · 0.85

Calls

no outgoing calls