diff --git a/cloudbot.py b/cloudbot.py index 4afaa11..c02d2a0 100644 --- a/cloudbot.py +++ b/cloudbot.py @@ -8,7 +8,7 @@ import sys import time # set up enviroment -sys.path += ['plugins', 'lib'] # add stuff to the sys.path for easy imports +sys.path += ['plugins', 'lib', 'core'] # add stuff to the sys.path for easy imports os.chdir(sys.path[0] or '.') # do stuff relative to the install directory print 'CloudBot REFRESH ' diff --git a/core/db.py b/core/db.py index 6bdf8fa..faa0c57 100755 --- a/core/db.py +++ b/core/db.py @@ -14,7 +14,7 @@ def get_db_connection(conn, name=''): threadid = thread.get_ident() if name in threaddbs and threadid in threaddbs[name]: return threaddbs[name][threadid] - filename = os.path.join(bot.persist_dir, name) + filename = os.path.join(bot.data_dir, name) db = sqlite3.connect(filename, timeout=10) if name in threaddbs: