summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2014-09-18 09:23:45 -0400
committerSebastian Koslowski <koslowski@kit.edu>2014-10-01 18:16:32 +0200
commit894f140709bb9528abfc0587ad227923356c8b7c (patch)
treec370712118c7a904c527416f19c8ab73b415da34 /grc/python/Generator.py
parentf151a070423cc31729472b203384b78560648623 (diff)
grc: fix missing xterm (Bug #725)
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 92f36cf30b..caf45fa3b1 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)