allow using a list for ePopen
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 27 Jan 2009 17:57:10 +0000 (18:57 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 27 Jan 2009 17:57:10 +0000 (18:57 +0100)
lib/python/Components/Console.py

index 136d10d..f1f3fd9 100644 (file)
@@ -21,7 +21,9 @@ class Console(object):
                self.appContainers[name] = eConsoleAppContainer()
                self.appContainers[name].dataAvail.append(boundFunction(self.dataAvailCB,name))
                self.appContainers[name].appClosed.append(boundFunction(self.finishedCB,name))
-               retval = self.appContainers[name].execute(cmd)
+               if isinstance(cmd, str): # until .execute supports a better api
+                       cmd = [cmd]
+               retval = self.appContainers[name].execute(*cmd)
                if retval:
                        self.finishedCB(name, retval)