diff options
-rw-r--r-- | grc/src/platforms/python/Generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/src/platforms/python/Generator.py b/grc/src/platforms/python/Generator.py index 7879fdfc0..5d3a13872 100644 --- a/grc/src/platforms/python/Generator.py +++ b/grc/src/platforms/python/Generator.py @@ -63,7 +63,7 @@ class Generator(object): @return a popen object """ #execute - cmds = [PYEXEC, self.get_file_path()] + cmds = [PYEXEC, '-u', self.get_file_path()] #-u is unbuffered stdio if self._generate_options == 'no_gui': cmds = ['xterm', '-e'] + cmds p = subprocess.Popen(args=cmds, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False, universal_newlines=True) @@ -90,7 +90,7 @@ class Generator(object): #list of callbacks (prepend self.) callbacks = [ expr_utils.expr_prepend(cb, var_ids, 'self.') - for cb in sum([block.get_callbacks() for block in self._flow_graph.get_blocks()], []) + for cb in sum([block.get_callbacks() for block in self._flow_graph.get_enabled_blocks()], []) ] #map var id to the expression (prepend self.) var_id2expr = dict( |