import sys
import site

PROJECT_NAME = 'sesivacka'

PYTHON_VERSION = 'python{major}.{minor}'.format(
    major=sys.version_info.major,
    minor=sys.version_info.minor
)

PROJECT_PATH = '/home/sesivacka/sesivacka'

PROJECT_SITE = '/.venv/lib/{PYTHON_VERSION}/site-packages'.format(
        PYTHON_VERSION=PYTHON_VERSION
)

site_packages = PROJECT_PATH+PROJECT_SITE

# For virtual environment
site.addsitedir(site_packages)

sys.path.insert(
    0,
    PROJECT_PATH
)

from sesivacka import app as application
