MCPcopy Create free account
hub / github.com/Louisym/MiniCC / default_for

Method default_for

tutorials/09_config_system.py:88–97  ·  view source on GitHub ↗

使用默认路径创建加载器

(cls, cwd: str)

Source from the content-addressed store, hash-verified

86
87 @classmethod
88 def default_for(cls, cwd: str) -> "ConfigLoader":
89 """使用默认路径创建加载器"""
90 # 配置目录的查找顺序:
91 # 1. 环境变量 CLAUDE_CONFIG_HOME
92 # 2. ~/.claude
93 config_home = os.environ.get("CLAUDE_CONFIG_HOME")
94 if not config_home:
95 home = os.path.expanduser("~")
96 config_home = os.path.join(home, ".claude")
97 return cls(cwd, config_home)
98
99 def discover(self) -> list[ConfigEntry]:
100 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected