summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/code_generator.py
diff options
context:
space:
mode:
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 """