diff options
| author | 2010-04-29 20:26:18 +0200 | |
|---|---|---|
| committer | 2010-04-29 20:26:18 +0200 | |
| commit | 632fb7eb860675a0375b8e3a8669335ec97f6d81 (patch) | |
| tree | 8b0cb62f009727b91923946e4e713017b739cea5 /module/file_list.py | |
| parent | Some design modifications (diff) | |
| download | pyload-632fb7eb860675a0375b8e3a8669335ec97f6d81.tar.xz | |
fixed updater, moved config files, folder for each package now optional
Diffstat (limited to 'module/file_list.py')
| -rw-r--r-- | module/file_list.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/file_list.py b/module/file_list.py index 01a5924b3..eff96fa9e 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -44,7 +44,7 @@ class File_List(object):      def __init__(self, core):          self.core = core          self.lock = RLock() -        self.download_folder = self.core.config['general']['download_folder'] +        self.download_folder = self.core.config["general"]["download_folder"]          self.collector = self.pyLoadCollector(self)          self.packager = self.pyLoadPackager(self) @@ -59,11 +59,11 @@ class File_List(object):      def load(self):          self.lock.acquire()          try: -            pkl_file = open(join(self.core.path, 'module', 'links.pkl'), 'rb') +            pkl_file = open(join(self.core.configdir, "links.pkl"), "rb")              obj = cPickle.load(pkl_file)          except:              obj = False -        if obj != False and obj['version'] == LIST_VERSION: +        if obj != False and obj["version"] == LIST_VERSION:              packages = []              queue = []              collector = [] @@ -106,7 +106,7 @@ class File_List(object):          pdata["queue"] = [PyLoadPackageData().set(x) for x in self.data["queue"]]          pdata["collector"] = [PyLoadFileData().set(x) for x in self.data["collector"]] -        output = open(join(self.core.path, 'module', 'links.pkl'), 'wb') +        output = open(join(self.core.configdir, "links.pkl"), "wb")          cPickle.dump(pdata, output, -1)          self.lock.release() | 
