mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
14 lines
225 B
Python
14 lines
225 B
Python
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
SRC = ROOT / "src"
|
|
|
|
while str(SRC) in sys.path:
|
|
sys.path.remove(str(SRC))
|
|
|
|
sys.path.insert(0, str(SRC))
|