From cae024ff222b03a6e0680c8c311d145c73701dba Mon Sep 17 00:00:00 2001
From: jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Date: Fri, 29 May 2009 18:10:43 +0000
Subject: eval fix

git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11165 221aa14e-8319-0410-a670-987f0aec2ac5
---
 grc/src/platforms/python/FlowGraph.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'grc/src/platforms/python/FlowGraph.py')

diff --git a/grc/src/platforms/python/FlowGraph.py b/grc/src/platforms/python/FlowGraph.py
index 95c0b38cb8..73720b7442 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):
-- 
cgit v1.2.3