mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-02 12:22:39 +02:00
feat: remove all unnecessary CONTEXT references
feat: replace CONTEXT with local context
This commit is contained in:
parent
dddf50112a
commit
d5ac56f863
66 changed files with 350 additions and 349 deletions
|
|
@ -84,7 +84,10 @@ class Config(CLIParams, YamlModel):
|
|||
@classmethod
|
||||
def from_home(cls, path):
|
||||
"""Load config from ~/.metagpt/config.yaml"""
|
||||
return Config.from_yaml_file(CONFIG_ROOT / path)
|
||||
pathname = CONFIG_ROOT / path
|
||||
if not pathname.exists():
|
||||
return None
|
||||
return Config.from_yaml_file(pathname)
|
||||
|
||||
@classmethod
|
||||
def default(cls):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue