mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-12 17:22:37 +02:00
feat: merge Config class of send18:dev branch
This commit is contained in:
parent
726eadf1cc
commit
2cd7d266dd
3 changed files with 49 additions and 12 deletions
|
|
@ -8,6 +8,7 @@
|
|||
common properties in the Message.
|
||||
@Modified By: mashenquan, 2023-11-27. Defines file repository paths according to Section 2.2.3.4 of RFC 135.
|
||||
"""
|
||||
import contextvars
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
|
|
@ -27,6 +28,8 @@ def get_project_root():
|
|||
current_path = parent_path
|
||||
|
||||
|
||||
OPTIONS = contextvars.ContextVar("OPTIONS")
|
||||
|
||||
PROJECT_ROOT = get_project_root()
|
||||
DATA_PATH = PROJECT_ROOT / "data"
|
||||
WORKSPACE_ROOT = PROJECT_ROOT / "workspace"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue