]> git.gag.com Git - debian/gnuradio/commitdiff
eval fix
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 29 May 2009 18:10:43 +0000 (18:10 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 29 May 2009 18:10:43 +0000 (18:10 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11165 221aa14e-8319-0410-a670-987f0aec2ac5

grc/src/platforms/python/FlowGraph.py

index 95c0b38cb8dd3ac29d3beb72b39e35f9ff34fde0..73720b74420fead4b850f0059cd8ae97426085d8 100644 (file)
@@ -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):