app: allow using list for command
This allows spaces in arguments Change-Id: Icb71157eba43488028ea4f207e8009d0201c87c7
This commit is contained in:
1 parent
92bc429fe1
commit
aed282d565
1 file changed
+3
-1
@@ -37,7 +37,9 @@ class Application(object):
|
||||
def start(self, command, logfile, envDict=None):
|
||||
if self.process is None:
|
||||
self.logfile = open('{}/{}'.format(self.logDir, logfile), 'w')
|
||||
self.process = getPopen(self.node, command.split(), envDict,
|
||||
if isinstance(command, str):
|
||||
command = command.split()
|
||||
self.process = getPopen(self.node, command, envDict,
|
||||
stdout=self.logfile, stderr=self.logfile)
|
||||
|
||||
def stop(self):
|
||||
|
||||
Reference in new issue
Block a user