summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-02-01 17:01:15 +0100
committerMartin Braun <martin.braun@ettus.com>2014-02-01 17:01:15 +0100
commitd9040c9f64de17a86b9288d0f470e194490384d0 (patch)
treedd821da422a2b72df925101ca6a8909898647a58 /grc/python/Generator.py
parent19d111e2448a58e20ff5c1c80ca69751376b2544 (diff)
grc: For "No GUI" option, you can now choose which terminal type you like
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 005ed4c2b3..62e7bcad44 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -28,6 +28,7 @@ from Constants import \
HIER_BLOCKS_LIB_DIR, FLOW_GRAPH_TEMPLATE
import convert_hier
from .. gui import Messages
+from gnuradio import gr
class Generator(object):
@@ -90,8 +91,9 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
cmds = [python_exe, '-u', self.get_file_path()] #-u is unbuffered stdio
#when in no gui mode on linux, use an xterm (looks nice)
+ xterm_executable = gr.prefs().get_string('grc', 'xterm_executable', 'xterm')
if self._generate_options == 'no_gui' and 'linux' in sys.platform.lower():
- cmds = ['xterm', '-e'] + cmds
+ cmds = [xterm_executable, '-e'] + cmds
p = subprocess.Popen(args=cmds, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False, universal_newlines=True)
return p