17 lines
359 B
Python
17 lines
359 B
Python
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)
|
|
|