If possible use loaded db to get db file inner_path
This commit is contained in:
parent
02d45e9c39
commit
8ed7d0385d
1 changed files with 7 additions and 4 deletions
|
@ -44,6 +44,9 @@ class SiteStorage(object):
|
||||||
raise Exception("Directory not exists: %s" % self.directory)
|
raise Exception("Directory not exists: %s" % self.directory)
|
||||||
|
|
||||||
def getDbFile(self):
|
def getDbFile(self):
|
||||||
|
if self.db:
|
||||||
|
return self.db.schema["db_file"]
|
||||||
|
else:
|
||||||
if self.isFile("dbschema.json"):
|
if self.isFile("dbschema.json"):
|
||||||
schema = self.loadJson("dbschema.json")
|
schema = self.loadJson("dbschema.json")
|
||||||
return schema["db_file"]
|
return schema["db_file"]
|
||||||
|
|
Loading…
Reference in a new issue