diff options
author | Tom Rondeau | 2013-05-24 17:20:46 -0400 |
---|---|---|
committer | Johnathan Corgan | 2013-05-25 14:09:23 -0700 |
commit | 2ebafea749da3101f4fb43d77444cedbc719ee08 (patch) | |
tree | 8643c52d5145a312cc8f4b09c38a77cc83474467 /gr-utils/src/python/modtool/code_generator.py | |
parent | d1f48160a87388369c54c7c6eeef404c1a31fe3e (diff) | |
download | gnuradio-2ebafea749da3101f4fb43d77444cedbc719ee08.tar.gz gnuradio-2ebafea749da3101f4fb43d77444cedbc719ee08.tar.bz2 gnuradio-2ebafea749da3101f4fb43d77444cedbc719ee08.zip |
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.
Conflicts:
gr-utils/src/python/modtool/templates.py
Diffstat (limited to 'gr-utils/src/python/modtool/code_generator.py')
-rw-r--r-- | gr-utils/src/python/modtool/code_generator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-utils/src/python/modtool/code_generator.py b/gr-utils/src/python/modtool/code_generator.py index 525b3d1e9..f6bfcd984 100644 --- a/gr-utils/src/python/modtool/code_generator.py +++ b/gr-utils/src/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 """ @@ -43,6 +44,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']] |