This commit is contained in:
cheng
2026-07-03 09:44:59 +08:00
commit 15088f9810
33 changed files with 3466 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from pathlib import Path
import sys
PACKAGE_DIR = Path(__file__).resolve().parent
REPO_ROOT = PACKAGE_DIR.parent
SDK_DIR = REPO_ROOT / "sdk"
SRC_DIR = REPO_ROOT / "src"
def ensure_project_paths():
for path in (SDK_DIR, SRC_DIR, REPO_ROOT):
path_text = str(path)
if path_text not in sys.path:
sys.path.insert(0, path_text)