aboutsummaryrefslogtreecommitdiff
path: root/src/__init__.py
blob: 2f4cffa441aa72586a3412d2b59c6ebf453e3368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import sys
import os


if getattr(sys, 'frozen', False):
    # frozen
    wd = os.path.dirname(sys.executable)
else:
    # unfrozen
    wd = os.path.dirname(os.path.realpath(__file__))

# make relative imports work when using /src as a package
sys.path.insert(0, wd)