diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-30 22:23:46 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-30 22:23:46 +0100 |
commit | 1db9787f52a7962274de304e28e22ef9d83588a6 (patch) | |
tree | dfaca7ad5b75dfd20cab704c4b21532f4ef7c107 /module/plugins/hooks/ExternalScripts.py | |
parent | Merge pull request #386 from vuolter/s/setup_clean (diff) | |
download | pyload-1db9787f52a7962274de304e28e22ef9d83588a6.tar.xz |
fixed import in ExternalScripts
Diffstat (limited to 'module/plugins/hooks/ExternalScripts.py')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index b1a9420bb..e557a7405 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -20,7 +20,7 @@ import subprocess from os import listdir, access, X_OK, makedirs -from os.path import join, exists, basename +from os.path import join, exists, basename, abspath from module.plugins.Hook import Hook from module.utils import save_join @@ -73,7 +73,7 @@ class ExternalScripts(Hook): def callScript(self, script, *args): try: cmd = [script] + [str(x) if not isinstance(x, basestring) else x for x in args] - self.logDebug("Executing %(script)s: %(cmd)s" % {"script": os.path.abspath(script), "cmd": " ".join(cmd)}) + self.logDebug("Executing %(script)s: %(cmd)s" % {"script": abspath(script), "cmd": " ".join(cmd)}) #output goes to pyload subprocess.Popen(cmd, bufsize=-1) except Exception, e: |