feat: merge Config class of send18:dev branch

This commit is contained in:
莘权 马 2023-11-27 21:20:46 +08:00
parent 726eadf1cc
commit 2cd7d266dd
3 changed files with 49 additions and 12 deletions

View file

@ -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"