diff options
author | syn <isaqtm@gmail.com> | 2021-03-08 20:11:17 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2021-03-08 20:11:17 +0300 |
commit | 82b3f4c5e419bd6fdaa0dae14c92586b51aee8d7 (patch) | |
tree | 1f1a5b02549d65565237bb3362253f7d5486228b /back/config.py | |
download | upnet-82b3f4c5e419bd6fdaa0dae14c92586b51aee8d7.tar.gz |
mvp
Diffstat (limited to 'back/config.py')
-rw-r--r-- | back/config.py | 12 |
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' |