summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-30 22:23:46 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-30 22:23:46 +0100
commit1db9787f52a7962274de304e28e22ef9d83588a6 (patch)
treedfaca7ad5b75dfd20cab704c4b21532f4ef7c107 /module
parentMerge pull request #386 from vuolter/s/setup_clean (diff)
downloadpyload-1db9787f52a7962274de304e28e22ef9d83588a6.tar.xz
fixed import in ExternalScripts
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/ExternalScripts.py4
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: