12 lines
271 B
Python
12 lines
271 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
|
||
|
|
def add_src_to_path() -> None:
|
||
|
|
backend_dir = Path(__file__).resolve().parents[1]
|
||
|
|
src_dir = backend_dir / "src"
|
||
|
|
if str(src_dir) not in sys.path:
|
||
|
|
sys.path.insert(0, str(src_dir))
|