summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/file_list.py5
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()