aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2008-10-31 13:07:01 +0100
committerAndreas Oberritter <obi@saftware.de>2008-11-06 01:46:55 +0100
commit728c78384a71b0231cfe0047292e34b8ec860522 (patch)
treed3797e574f01bbddc15f043587a1d545b97ff462 /lib/python
parent52c94625063d5ea3ebf77db99acac8a43639c12a (diff)
downloadenigma2-728c78384a71b0231cfe0047292e34b8ec860522.tar.gz
enigma2-728c78384a71b0231cfe0047292e34b8ec860522.zip
add possibility to call eConsoleAppContainer execute with unlimited count of arguments
when its called with single argument, then /bin/sh is started else not
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Task.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/Components/Task.py b/lib/python/Components/Task.py
index 47acc87e..ab85c667 100644
--- a/lib/python/Components/Task.py
+++ b/lib/python/Components/Task.py
@@ -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)