clickmap/application.wsgi
2025-05-26 10:48:14 +02:00

13 lines
338 B
Python

#!/usr/bin/python3
from os.path import dirname, realpath, abspath
from inspect import getsourcefile
import sys
# Hack to auto-detect the current diectory and add it to the python path
scriptpath = dirname(realpath(abspath(getsourcefile(lambda:0))))
if scriptpath not in sys.path:
sys.path.insert(0, scriptpath)
from api import app