add possibility to call eConsoleAppContainer execute with unlimited count of arguments
[enigma2.git] / lib / python / Components / Task.py
index 47acc87eb741ac2a1d465462384a2ac72d864ac7..ab85c66718b66e7c7f090ef87965d210452093b7 100644 (file)
@@ -136,6 +136,7 @@ class Task(object):
 
        def setTool(self, tool):
                self.cmd = tool
+               self.args = [tool]
                self.global_preconditions.append(ToolExistsPrecondition())
                self.postconditions.append(ReturncodePostcondition())
 
@@ -171,8 +172,7 @@ class Task(object):
                if self.cwd is not None:
                        self.container.setCWD(self.cwd)
 
-               execstr = " ".join([self.cmd]+self.args)
-               print "execute:", self.container.execute(execstr), execstr
+               print "execute:", self.container.execute(self.cmd, *self.args), self.cmd, *self.args
                if self.initial_input:
                        self.writeInput(self.initial_input)