diff options
author | jblum | 2009-05-29 18:10:43 +0000 |
---|---|---|
committer | jblum | 2009-05-29 18:10:43 +0000 |
commit | cae024ff222b03a6e0680c8c311d145c73701dba (patch) | |
tree | c4c6a9f7eaa8465b841099fb15a0f6e0e254ef30 | |
parent | a91dbdf2bd5eb918e306b17a44669aba405fd32b (diff) | |
download | gnuradio-cae024ff222b03a6e0680c8c311d145c73701dba.tar.gz gnuradio-cae024ff222b03a6e0680c8c311d145c73701dba.tar.bz2 gnuradio-cae024ff222b03a6e0680c8c311d145c73701dba.zip |
eval fix
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11165 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | grc/src/platforms/python/FlowGraph.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/src/platforms/python/FlowGraph.py b/grc/src/platforms/python/FlowGraph.py index 95c0b38cb..73720b744 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): |