diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-21 12:51:06 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-11-21 12:51:06 -0800 |
commit | b942affe9f36be114ac01bf3dd50e4ad663a2845 (patch) | |
tree | b66cfd1e3e590a77118877a4754b0b2b703d7f5c /gr-utils/python/modtool/code_generator.py | |
parent | fdff4ce0e6561270582d7a8363d22cff6ce05b19 (diff) | |
parent | b36fa93e9a3b3f1e5f58842ba813073a8ecde127 (diff) |
Merge branch '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 """ |