summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-21 18:23:28 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-21 18:23:28 +0200
commit6725cbd7f7e52741ee13f79ea030b908691232bf (patch)
tree25dec00afba7d03e938ec370a0d5570a22b1f74f /module/plugins/Plugin.py
parentadaptions for win build (diff)
downloadpyload-6725cbd7f7e52741ee13f79ea030b908691232bf.tar.xz
removed tempfile, win fixes
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 31aae2ee9..42809b248 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -204,7 +204,7 @@ class Plugin(object):
content = self.load(url, get=get, post=post, cookies=cookies)
temp = NamedTemporaryFile()
- temp = open("tmpCaptcha_%s" % self.__name__, "wb")
+ temp = open(join("tmp","tmpCaptcha_%s" % self.__name__ ), "wb")
temp.write(content)
temp.close()
@@ -232,9 +232,10 @@ class Plugin(object):
sleep(1)
result = task.getResult()
task.removeTask()
+
+ if not self.core.debug:
+ remove(temp.name)
- remove(temp.name)
- #temp.unlink(temp.name)
return result