commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/06: grc: better Popen argument handling


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/06: grc: better Popen argument handling for CLI based apps
Date: Sun, 14 Jun 2015 16:34:14 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit f184ccf0efcd52d455f8af13aae3d8eeeeefbfaa
Author: Tim K <address@hidden>
Date:   Mon Jun 1 15:31:04 2015 -0400

    grc: better Popen argument handling for CLI based apps
    
    "python -u ..." argument to "xterm -e" should be treated as all one argument
---
 grc/python/Generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index a3f9f10..fc1dd56 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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]