summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/code_generator.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@kit.edu>2013-11-19 14:47:01 +0100
committerMartin Braun <martin.braun@kit.edu>2013-11-19 15:02:06 +0100
commit0cb397ce39dbdc22ab990cc860e35ef503a08fda (patch)
tree3a0d86e985f5df84498d74ee5bde2abb9f166280 /gr-utils/python/modtool/code_generator.py
parent86845ea15ab8d36f5c196c8ab56e5b77d43b4cf9 (diff)
modtool: bugfixes for in-tree operation (include paths, license, cmake editing)
Diffstat (limited to 'gr-utils/python/modtool/code_generator.py')
-rw-r--r--gr-utils/python/modtool/code_generator.py4
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 """