summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/code_generator.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-05-24 17:20:46 -0400
committerTom Rondeau <trondeau@vt.edu>2013-05-24 17:20:46 -0400
commit6b1e513f71dc70b435d2bff920e06d20c569f189 (patch)
tree6b261a7242e0fcc87db822a4aab2db69892c34c0 /gr-utils/python/modtool/code_generator.py
parent74c3da35ff660145c993f74c5a1e519660d125d4 (diff)
modtool: Fixes for intial templates of a block.
1. adds '$' to args in the GRC xml <make> tag. 2. sets <+ITYPE+> and <+OTYPE+> for all I/O data types in io_signature and in work functions to be more clear what needs modification.
Diffstat (limited to 'gr-utils/python/modtool/code_generator.py')
-rw-r--r--gr-utils/python/modtool/code_generator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/code_generator.py b/gr-utils/python/modtool/code_generator.py
index 33cebc68c4..1bdffa501b 100644
--- a/gr-utils/python/modtool/code_generator.py
+++ b/gr-utils/python/modtool/code_generator.py
@@ -26,6 +26,7 @@ from util_functions import str_to_fancyc_comment
from util_functions import str_to_python_comment
from util_functions import strip_default_values
from util_functions import strip_arg_types
+from util_functions import strip_arg_types_grc
class GRMTemplate(Cheetah.Template.Template):
""" An extended template class """
@@ -44,6 +45,7 @@ class GRMTemplate(Cheetah.Template.Template):
searchList['str_to_python_comment'] = str_to_python_comment
searchList['strip_default_values'] = strip_default_values
searchList['strip_arg_types'] = strip_arg_types
+ searchList['strip_arg_types_grc'] = strip_arg_types_grc
Cheetah.Template.Template.__init__(self, src, searchList=searchList)
self.grblocktype = self.grtypelist[searchList['blocktype']]