diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2008-10-31 13:07:01 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@saftware.de> | 2008-11-06 01:52:03 +0100 |
| commit | 19ce1123c780a9475e2f158712da6e73fa543e9c (patch) | |
| tree | b87da56c335eb04f3450076becbcae2d1f981515 /lib/python/Components/Task.py | |
| parent | f69b4f8dbed8ff96260b951cf8cecd76fa85423b (diff) | |
| download | enigma2-19ce1123c780a9475e2f158712da6e73fa543e9c.tar.gz enigma2-19ce1123c780a9475e2f158712da6e73fa543e9c.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/Components/Task.py')
| -rw-r--r-- | lib/python/Components/Task.py | 4 |
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) |
