summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorTim K <tpkuester@gmail.com>2015-06-01 15:31:04 -0400
committerSebastian Koslowski <koslowski@kit.edu>2015-06-10 15:53:53 +0200
commitf184ccf0efcd52d455f8af13aae3d8eeeeefbfaa (patch)
tree1c1e6a8a67c40dcabc024956b65cc7f8a260ccfb /grc/python/Generator.py
parent99ea6c2879e0ebd6be833b2541d9d94fa701382a (diff)
grc: better Popen argument handling for CLI based apps
"python -u ..." argument to "xterm -e" should be treated as all one argument
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index a3f9f10fc1..fc1dd56f50 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -129,7 +129,7 @@ class TopBlockGenerator(object):
# when in no gui mode on linux, use a graphical terminal (looks nice)
xterm_executable = find_executable(XTERM_EXECUTABLE)
if self._generate_options == 'no_gui' and xterm_executable:
- cmds = [xterm_executable, '-e'] + cmds
+ cmds = [xterm_executable, '-e'] + ' '.join(cmds)
p = subprocess.Popen(
args=cmds, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,