mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 18:36:22 +02:00
fix cContextVar OPTIONS LookupError
This commit is contained in:
parent
32d6898ea5
commit
335a025c03
2 changed files with 3 additions and 1 deletions
|
|
@ -45,9 +45,11 @@ class Config(metaclass=Singleton):
|
|||
default_yaml_file = METAGPT_ROOT / "config/config.yaml"
|
||||
|
||||
def __init__(self, yaml_file=default_yaml_file):
|
||||
golbal_options = OPTIONS.get()
|
||||
self._init_with_config_files_and_env(yaml_file)
|
||||
logger.debug("Config loading done.")
|
||||
self._update()
|
||||
golbal_options.update(OPTIONS.get())
|
||||
|
||||
def _update(self):
|
||||
# logger.info("Config loading done.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue