summaryrefslogtreecommitdiff
path: root/gr-utils/src
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/src')
-rw-r--r--gr-utils/src/python/modtool/templates.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/gr-utils/src/python/modtool/templates.py b/gr-utils/src/python/modtool/templates.py
index 877735711..bfdba19c0 100644
--- a/gr-utils/src/python/modtool/templates.py
+++ b/gr-utils/src/python/modtool/templates.py
@@ -495,15 +495,13 @@ gr_modtool help -- Show a list of commands.
gr_modtool help <command> -- Shows the help for a given command. '''
# SWIG string
-Templates['swig_block_magic'] = """#if $version == '37'
-#set $mod_block_sep = '/'
-#set $block_magic_version = '2'
+Templates['swig_block_magic'] = """#if $version == '36'
+GR_SWIG_BLOCK_MAGIC($modname, $blockname);
+%include "${modname}_${blockname}.h"
#else
-#set $mod_block_sep = '_'
-#set $block_magic_version = ''
-#end if
-%include "${modname}${mod_block_sep}${blockname}.h"
-GR_SWIG_BLOCK_MAGIC${block_magic_version}($modname, $blockname);
+%include "${modname}/${blockname}.h"
+GR_SWIG_BLOCK_MAGIC2($modname, $blockname);
+#end
"""
## Old stuff