[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/05: modtool: add basic support for GRC m
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/05: modtool: add basic support for GRC modules in block tree |
Date: |
Mon, 6 Jun 2016 17:15:26 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 3643b439a84486a6efb36ea8b01b037c1e005700
Author: Sebastian Koslowski <address@hidden>
Date: Thu Jun 2 15:56:42 2016 +0200
modtool: add basic support for GRC modules in block tree
---
gr-utils/python/modtool/grc_xml_generator.py | 2 +-
gr-utils/python/modtool/templates.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gr-utils/python/modtool/grc_xml_generator.py
b/gr-utils/python/modtool/grc_xml_generator.py
index 7ccd443..af17ca1 100644
--- a/gr-utils/python/modtool/grc_xml_generator.py
+++ b/gr-utils/python/modtool/grc_xml_generator.py
@@ -35,7 +35,7 @@ class GRCXMLGenerator(object):
# Can't make a dict 'cause order matters
self._header = (('name', blockname.replace('_', ' ').capitalize()),
('key', '%s_%s' % (modname, blockname)),
- ('category', modname.upper()),
+ ('category', '[%s]' % modname.upper()),
('import', 'import %s' % modname),
('make', '%s.%s(%s)' % (modname, blockname, ',
'.join(params_list)))
)
diff --git a/gr-utils/python/modtool/templates.py
b/gr-utils/python/modtool/templates.py
index 9caf658..2804224 100644
--- a/gr-utils/python/modtool/templates.py
+++ b/gr-utils/python/modtool/templates.py
@@ -521,7 +521,7 @@ Templates['grc_xml'] = '''<?xml version="1.0"?>
<block>
<name>$blockname</name>
<key>${modname}_$blockname</key>
- <category>$modname</category>
+ <category>[$modname]</category>
<import>import $modname</import>
<make>${modname}.${blockname}(${strip_arg_types_grc($arglist)})</make>
<!-- Make one 'param' node for every Parameter you want settable from the
GUI.