From 713c32311309ea268fba50bd3ae639ab23c459fd Mon Sep 17 00:00:00 2001 From: geekan Date: Fri, 7 Jul 2023 10:36:44 +0800 Subject: [PATCH] adapt folders without git clone --- metagpt/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metagpt/const.py b/metagpt/const.py index ca9aed89d..0f51a6061 100644 --- a/metagpt/const.py +++ b/metagpt/const.py @@ -13,7 +13,8 @@ def get_project_root(): current_path = Path.cwd() while True: if (current_path / '.git').exists() or \ - (current_path / '.project_root').exists(): + (current_path / '.project_root').exists() or \ + (current_path.name.lower() == 'metagpt'): return current_path parent_path = current_path.parent if parent_path == current_path: