mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 11:56:24 +02:00
feat: merge geekan:cli-etc
This commit is contained in:
parent
5351b50d1c
commit
17bf646539
7 changed files with 0 additions and 180 deletions
|
|
@ -19,34 +19,6 @@ import metagpt
|
|||
OPTIONS = contextvars.ContextVar("OPTIONS")
|
||||
|
||||
|
||||
# <<<<<<< HEAD
|
||||
# def get_project_root():
|
||||
# """Search upwards to find the project root directory."""
|
||||
# current_path = Path.cwd()
|
||||
# while True:
|
||||
# if (
|
||||
# (current_path / ".git").exists()
|
||||
# or (current_path / ".project_root").exists()
|
||||
# or (current_path / ".gitignore").exists()
|
||||
# ):
|
||||
# return current_path
|
||||
# parent_path = current_path.parent
|
||||
# if parent_path == current_path:
|
||||
# raise Exception("Project root not found.")
|
||||
# current_path = parent_path
|
||||
#
|
||||
#
|
||||
# PROJECT_ROOT = get_project_root()
|
||||
# DATA_PATH = PROJECT_ROOT / "data"
|
||||
# WORKSPACE_ROOT = PROJECT_ROOT / "workspace"
|
||||
# PROMPT_PATH = PROJECT_ROOT / "metagpt/prompts"
|
||||
# UT_PATH = PROJECT_ROOT / "data/ut"
|
||||
# SWAGGER_PATH = UT_PATH / "files/api/"
|
||||
# UT_PY_PATH = UT_PATH / "files/ut/"
|
||||
# API_QUESTIONS_PATH = UT_PATH / "files/question/"
|
||||
# YAPI_URL = "http://yapi.deepwisdomai.com/"
|
||||
# TMP = PROJECT_ROOT / "tmp"
|
||||
# =======
|
||||
def get_metagpt_package_root():
|
||||
"""Get the root directory of the installed package."""
|
||||
package_root = Path(metagpt.__file__).parent.parent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue