fix init code for db
This commit is contained in:
parent
788c88595c
commit
2786c701f0
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue