diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-10-01 12:19:48 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-10-01 12:19:48 -0700 |
commit | 1edeff17c0b11e9ab2c626a82472690318268a9a (patch) | |
tree | dd0d73bebdac5d4ba96bf5e1349752cea27e4cdd /grc/python/Generator.py | |
parent | ff7e74b2cc1ae21180a57da19ab4c0725aa233b4 (diff) | |
parent | ca4d8ff0c4efb685cfd4b13a33f6640cc7e44fa1 (diff) |
Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r-- | grc/python/Generator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py index 92f36cf30..caf45fa3b 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) |