mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
兼容非git clone的直接下载用户
This commit is contained in:
parent
10a12e0906
commit
388241666d
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ def get_project_root():
|
|||
while True:
|
||||
if (current_path / '.git').exists() or \
|
||||
(current_path / '.project_root').exists() or \
|
||||
(current_path.name.lower() == 'metagpt' and current_path.parent.name.lower() != 'tests'):
|
||||
(current_path / '.gitignore').exists():
|
||||
return current_path
|
||||
parent_path = current_path.parent
|
||||
if parent_path == current_path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue