From 82b3f4c5e419bd6fdaa0dae14c92586b51aee8d7 Mon Sep 17 00:00:00 2001 From: syn Date: Mon, 8 Mar 2021 20:11:17 +0300 Subject: mvp --- back/config.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 back/config.py (limited to 'back/config.py') diff --git a/back/config.py b/back/config.py new file mode 100644 index 0000000..a3185ee --- /dev/null +++ b/back/config.py @@ -0,0 +1,12 @@ +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' -- cgit v1.2.1-18-gbd029