summaryrefslogtreecommitdiffstats
path: root/back/config.py
blob: e3cc8004076b8504c5df4e16ed63be22ae32b3eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
import sys

modpath = __file__

# Turn pyc files into py files if we can
if modpath.endswith(".pyc") and os.path.exists(modpath[:-1]):
    modpath = modpath[:-1]

# Sort out symlinks
APP_DIR = os.path.realpath(os.path.dirname(modpath))
REDIS_HOST = "localhost"

debug = 'debug' in sys.argv

sanic_host = "localhost"
sanic_port = 8001