more fixes!
This commit is contained in:
parent
bdec6fabf9
commit
2466c9fbb4
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
# set up enviroment
|
# 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
|
os.chdir(sys.path[0] or '.') # do stuff relative to the install directory
|
||||||
|
|
||||||
print 'CloudBot REFRESH <http://git.io/cloudbotirc>'
|
print 'CloudBot REFRESH <http://git.io/cloudbotirc>'
|
||||||
|
|
|
@ -14,7 +14,7 @@ def get_db_connection(conn, name=''):
|
||||||
threadid = thread.get_ident()
|
threadid = thread.get_ident()
|
||||||
if name in threaddbs and threadid in threaddbs[name]:
|
if name in threaddbs and threadid in threaddbs[name]:
|
||||||
return threaddbs[name][threadid]
|
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)
|
db = sqlite3.connect(filename, timeout=10)
|
||||||
if name in threaddbs:
|
if name in threaddbs:
|
||||||
|
|
Reference in a new issue