import sys
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
ADDON = ROOT / "addon"

for path in (ROOT, ADDON):
    value = str(path)
    if value not in sys.path:
        sys.path.insert(0, value)
