File size: 326 Bytes
2aa3e66 a2e3bb6 2aa3e66 a2e3bb6 2aa3e66 a2e3bb6 2aa3e66 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import importlib
import sys
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parent
SRC_DIR = ROOT_DIR / "src"
if str(SRC_DIR) not in sys.path:
sys.path.insert(0, str(SRC_DIR))
main = importlib.import_module("ddgs_api.cli").main
if __name__ == "__main__":
raise SystemExit(main(project_root=ROOT_DIR))
|