summaryrefslogtreecommitdiff
path: root/lib/classes.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes.py')
-rw-r--r--lib/classes.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/classes.py b/lib/classes.py
index 50f3e14..9370241 100644
--- a/lib/classes.py
+++ b/lib/classes.py
@@ -1,6 +1,10 @@
import redis, socket, os
-from config import config as co
+try:
+ from .config import config as co
+except:
+ from config import config as co
+
r = redis.Redis(host=co['host'], port=co['port'], unix_socket_path=co['unix_socket_path'], db=co['db'])
def clear():