diff options
author | spoob <spoob@gmx.de> | 2009-11-29 15:18:18 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-11-29 15:18:18 +0100 |
commit | 8effa6e3712a11104835aa031242b39a29f291a0 (patch) | |
tree | 7a44186a26d77e4da1d658ada63a42ca61797827 /module | |
parent | Fixed SecureXMLRPC Bug (diff) | |
download | pyload-8effa6e3712a11104835aa031242b39a29f291a0.tar.xz |
links.pkl now in module, nicer terminal kill
Diffstat (limited to 'module')
-rw-r--r-- | module/file_list.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/file_list.py b/module/file_list.py index 7b886cc2c..c95eefcec 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -28,6 +28,7 @@ from download_thread import Status import cPickle import re import module.Plugin +from os import sep class NoSuchElementException(Exception): pass @@ -51,7 +52,7 @@ class File_List(object): def load(self): self.lock.acquire() try: - pkl_file = open('links.pkl', 'rb') + pkl_file = open('module' + sep + 'links.pkl', 'rb') obj = cPickle.load(pkl_file) except: obj = False @@ -112,7 +113,7 @@ class File_List(object): pdata["queue"] = queue pdata["collector"] = collector - output = open('links.pkl', 'wb') + output = open('module' + sep + 'links.pkl', 'wb') cPickle.dump(pdata, output, -1) self.lock.release() |