From: jblum Date: Fri, 29 May 2009 18:10:43 +0000 (+0000) Subject: eval fix X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=cae024ff222b03a6e0680c8c311d145c73701dba;p=debian%2Fgnuradio eval fix git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11165 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/grc/src/platforms/python/FlowGraph.py b/grc/src/platforms/python/FlowGraph.py index 95c0b38c..73720b74 100644 --- a/grc/src/platforms/python/FlowGraph.py +++ b/grc/src/platforms/python/FlowGraph.py @@ -25,11 +25,12 @@ from Connection import Connection def _get_value_expr(variable_block): """ Get the expression to evaluate from the value param. + Parameter blocks need to be evaluated so the stringify flag can be determined. @param variable_block the variable or parameter block @return the expression string """ value_param = variable_block.get_param('value') - value_param.evaluate() #evaluate prior to code + if variable_block.get_key() == 'parameter': value_param.evaluate() return value_param.to_code() class FlowGraph(_FlowGraph):