mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-19 00:40:42 -06:00
Fixed shelve method
This commit is contained in:
parent
36cc3f9365
commit
eca0c0dbbd
@ -75,7 +75,7 @@ class baseSession(object):
|
|||||||
|
|
||||||
def shelve(self):
|
def shelve(self):
|
||||||
"""Shelve the database to allow for persistance."""
|
"""Shelve the database to allow for persistance."""
|
||||||
shelfname=os.path.join(paths.config_path(), str(self.session_id)+"/cache")
|
shelfname=os.path.join(paths.config_path(), str(self.session_id), "cache")
|
||||||
if self.settings["general"]["persist_size"] == 0:
|
if self.settings["general"]["persist_size"] == 0:
|
||||||
if os.path.exists(shelfname+".dat"):
|
if os.path.exists(shelfname+".dat"):
|
||||||
os.remove(shelfname+".dat")
|
os.remove(shelfname+".dat")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user