mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add PROJECT_ROOT logging info
This commit is contained in:
parent
a5bc55f18a
commit
f0098f0ae9
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue