summaryrefslogtreecommitdiffstats
path: root/back/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'back/config.py')
-rw-r--r--back/config.py12
1 files changed, 12 insertions, 0 deletions
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'