Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

add PROJECT_ROOT logging info

garylin2099f0098f0ae9fe
diff --git a/metagpt/const.py b/metagpt/const.py
index 86b2b6c87..407ce803a 100644
--- a/metagpt/const.py
+++ b/metagpt/const.py
@@ -18,12 +18,13 @@ def get_project_root():
or (current_path / ".gitignore").exists()
):
# use metagpt with git clone will land here
+ logger.info(f"PROJECT_ROOT set to {str(current_path)}")
return current_path
parent_path = current_path.parent
if parent_path == current_path:
# use metagpt with pip install will land here
cwd = Path.cwd()
- logger.info(f"RPOJECT_ROOT set to current working directory: {str(cwd)}")
+ logger.info(f"PROJECT_ROOT set to current working directory: {str(cwd)}")
return cwd
current_path = parent_path