change default path of queue persistence files (closes #110)
This commit is contained in:
@@ -136,9 +136,12 @@ class Download:
|
||||
|
||||
class PersistentQueue:
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
pdir = os.path.dirname(path)
|
||||
if not os.path.isdir(pdir):
|
||||
os.mkdir(pdir)
|
||||
with shelve.open(path, 'c'):
|
||||
pass
|
||||
self.path = path
|
||||
self.dict = OrderedDict()
|
||||
|
||||
def load(self):
|
||||
|
||||
Reference in New Issue
Block a user