diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-21 12:47:51 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-21 12:47:51 -0800 |
commit | b36fa93e9a3b3f1e5f58842ba813073a8ecde127 (patch) | |
tree | 53bae6b1e49158757bf74ddbe81f2ec6f8c1903c /gr-utils/python/modtool/code_generator.py | |
parent | e74d4810409c07236580038d6056e391f4ef63d7 (diff) | |
parent | 0cb397ce39dbdc22ab990cc860e35ef503a08fda (diff) |
Merge remote-tracking branch 'martin/hpd-modtool-fixes' into maint
Diffstat (limited to 'gr-utils/python/modtool/code_generator.py')
-rw-r--r-- | gr-utils/python/modtool/code_generator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/code_generator.py b/gr-utils/python/modtool/code_generator.py index 1bdffa501b..99f91761af 100644 --- a/gr-utils/python/modtool/code_generator.py +++ b/gr-utils/python/modtool/code_generator.py @@ -48,6 +48,10 @@ class GRMTemplate(Cheetah.Template.Template): searchList['strip_arg_types_grc'] = strip_arg_types_grc Cheetah.Template.Template.__init__(self, src, searchList=searchList) self.grblocktype = self.grtypelist[searchList['blocktype']] + if searchList['is_component']: + self.include_dir_prefix = "gnuradio/" + searchList['modname'] + else: + self.include_dir_prefix = searchList['modname'] def get_template(tpl_id, **kwargs): """ Return the template given by tpl_id, parsed through Cheetah """ |