[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf 'better Popen argument handling...' |
Date: |
Fri, 28 Aug 2015 19:19:49 +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 3a2cdbc9e34d277a992f3a2fcbfc6641508ca07f
Author: Sebastian Koslowski <address@hidden>
Date: Wed Aug 12 11:09:30 2015 +0200
grc: fix for reverted commit f184ccf 'better Popen argument handling...'
---
grc/python/Generator.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index a3f9f10..14a5ee7 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -123,13 +123,17 @@ class TopBlockGenerator(object):
# if self._generate_options == 'wx_gui' and 'darwin' in
sys.platform.lower():
# python_exe = 'pythonw'
+ def args_to_string(args):
+ """Accounts for spaces in args"""
+ return ' '.join(repr(arg) if ' ' in arg else arg for arg in args)
+
# setup the command args to run
cmds = [python_exe, '-u', self.get_file_path()] # -u is unbuffered
stdio
# 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', args_to_string(cmds)]
p = subprocess.Popen(
args=cmds, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
- [Commit-gnuradio] [gnuradio] branch maint updated (22e2f1a -> d063b05), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 07/10: Merge remote-tracking branch 'geiger/fix_pfb_arb_resampler_fff' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf 'better Popen argument handling...',
git <=
- [Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampler_* variants, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 05/10: cmake: Fix warning related to GrSetupQt4 in modern CMake, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback when a block is missing, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 09/10: Fixes Coverity Defect 1229872: Memory leak in `atsci_equalizer_lms2` DTOR, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'bhilburn/cov1229872' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to allow proper flowgraph termination, git, 2015/08/28