commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 06/08: grc: fix missing xterm (Bug #725)


From: git
Subject: [Commit-gnuradio] [gnuradio] 06/08: grc: fix missing xterm (Bug #725)
Date: Wed, 1 Oct 2014 19:32:59 +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 894f140709bb9528abfc0587ad227923356c8b7c
Author: Sebastian Koslowski <address@hidden>
Date:   Thu Sep 18 09:23:45 2014 -0400

    grc: fix missing xterm (Bug #725)
---
 grc/python/Generator.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 92f36cf..caf45fa 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -93,10 +93,10 @@ This is usually undesired. Consider removing the throttle 
block.''')
         #   python_exe = 'pythonw'
 
         #setup the command args to run
-        cmds = [python_exe, '-u', self.get_file_path()] #-u is unbuffered stdio
+        cmds = [python_exe, '-u', self.get_file_path()]  # -u is unbuffered 
stdio
 
-        #when in no gui mode on linux, use an xterm (looks nice)
-        if self._generate_options == 'no_gui' and 'linux' in 
sys.platform.lower():
+        # when in no gui mode on linux, use a graphical terminal (looks nice)
+        if self._generate_options == 'no_gui' and 
os.path.exists(XTERM_EXECUTABLE):
             cmds = [XTERM_EXECUTABLE, '-e'] + cmds
 
         p = subprocess.Popen(args=cmds, stdout=subprocess.PIPE, 
stderr=subprocess.STDOUT, shell=False, universal_newlines=True)



reply via email to

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