fix init code for db

This commit is contained in:
j 2009-11-20 13:01:39 +01:00
parent 788c88595c
commit 2786c701f0
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ def _getCacheBase():
def _getCacheDB():
path = _getCacheBase()
if not os.path.exists(os.path.dirname(path)):
os.makedirs(os.path.dirname(path))
if not os.path.exists(path):
os.makedirs(path)
return os.path.join(path, "cache.sqlite")
def _connectDb():