fix init code for db
This commit is contained in:
parent
ad473adec9
commit
788c88595c
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ def _getCacheBase():
|
||||||
def _getCacheDB():
|
def _getCacheDB():
|
||||||
path = _getCacheBase()
|
path = _getCacheBase()
|
||||||
if not os.path.exists(os.path.dirname(path)):
|
if not os.path.exists(os.path.dirname(path)):
|
||||||
os.makedirs(os.path.exists(os.path.dirname(path)))
|
os.makedirs(os.path.dirname(path))
|
||||||
return os.path.join(path, "cache.sqlite")
|
return os.path.join(path, "cache.sqlite")
|
||||||
|
|
||||||
def _connectDb():
|
def _connectDb():
|
||||||
|
|
Loading…
Reference in a new issue