Skip to content

Commit

Permalink
兼容非git clone的直接下载用户
Browse files Browse the repository at this point in the history
  • Loading branch information
geekan committed Jul 8, 2023
1 parent 10a12e0 commit 3882416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metagpt/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3882416

Please sign in to comment.