From eae5c1adb9d16ab465996a88ad90b21166f4d7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3D=3FUTF-8=3Fq=3FMichael=3D20Elsd=3DC3=3DB6rfer=3F=3D?= Date: Thu, 21 Nov 2013 18:26:44 +0100 Subject: Merged #407 Make debugging script issue a bit easier (cherry picked from commit 6df98309258e180587a71bd13940ca0ff7c56029) --- pyload/plugins/addons/ExternalScripts.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pyload/plugins/addons/ExternalScripts.py') diff --git a/pyload/plugins/addons/ExternalScripts.py b/pyload/plugins/addons/ExternalScripts.py index de8afda5f..b1a9420bb 100644 --- a/pyload/plugins/addons/ExternalScripts.py +++ b/pyload/plugins/addons/ExternalScripts.py @@ -73,6 +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)}) #output goes to pyload subprocess.Popen(cmd, bufsize=-1) except Exception, e: -- cgit v1.2.3