#!/usr/bin/env python3

import sys
from pathlib import Path
from typing import TYPE_CHECKING

sys.path[0] = str(Path(__file__).parents[1] / 'patchbay_daemon')
sys.path.insert(1, str(Path(__file__).parents[1] / 'shared'))
sys.path.insert(1, str(Path(__file__).parents[2] / 'HoustonPatchbay/source'))

if TYPE_CHECKING:
    import src.patchbay_daemon.patchbay_daemon as pbd
    pbd.start()
else:
    import patchbay_daemon
    patchbay_daemon.start()
