diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-01 20:02:26 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-01 20:02:26 +0200 |
commit | 93dd7baa519d15712e4c578b472e448502ec2298 (patch) | |
tree | 6980b0eb4432de2bdf72c6271bd736c6fc35e4ab /module/Plugin.py | |
parent | import fix (diff) | |
download | pyload-93dd7baa519d15712e4c578b472e448502ec2298.tar.xz |
updated captcha manager
Diffstat (limited to 'module/Plugin.py')
-rw-r--r-- | module/Plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/Plugin.py b/module/Plugin.py index 59aa9c1d1..1428e6235 100644 --- a/module/Plugin.py +++ b/module/Plugin.py @@ -24,6 +24,7 @@ from os.path import join from time import sleep import sys +from os.path import exists from module.network.Request import Request from os import makedirs @@ -175,7 +176,7 @@ class Plugin(): if self.pyfile.package.data["package_name"] != (self.parent.core.config['general']['link_file']) and self.parent.core.xmlconfig.get("general", "folder_per_package", False): self.pyfile.folder = self.pyfile.package.data["package_name"] location = join(download_folder, self.pyfile.folder.decode(sys.getfilesystemencoding())) - makedirs(location) + if not exists(location): makedirs(location) file_path = join(location.decode(sys.getfilesystemencoding()), self.pyfile.status.filename.decode(sys.getfilesystemencoding())) else: file_path = join(download_folder, self.pyfile.status.filename.decode(sys.getfilesystemencoding())) |