From 0cb397ce39dbdc22ab990cc860e35ef503a08fda Mon Sep 17 00:00:00 2001
From: Martin Braun <martin.braun@kit.edu>
Date: Tue, 19 Nov 2013 14:47:01 +0100
Subject: modtool: bugfixes for in-tree operation (include paths, license,
 cmake editing)

---
 gr-utils/python/modtool/code_generator.py | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'gr-utils/python/modtool/code_generator.py')

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 """
-- 
cgit v1.2.3