15 lines
386 B
Python
15 lines
386 B
Python
#!/usr/bin/env python3
|
|
"""Compatibility wrapper for launching the backend from the repository root."""
|
|
import os
|
|
import runpy
|
|
import sys
|
|
|
|
ROOT = os.path.dirname(os.path.abspath(__file__))
|
|
SRC_DIR = os.path.join(ROOT, "src")
|
|
|
|
if SRC_DIR not in sys.path:
|
|
sys.path.insert(0, SRC_DIR)
|
|
|
|
if __name__ == "__main__":
|
|
runpy.run_path(os.path.join(SRC_DIR, "run.py"), run_name="__main__")
|