diff options
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r-- | grc/base/Block.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index cadff12c0a..b367e60e69 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -141,8 +141,9 @@ class Block(Element): and (self._key != "virtual_sink") \ and (self._key != "pad_source") \ and (self._key != "pad_sink")) + is_variable = self._key.startswith('variable') - if is_not_virtual_or_pad: + if is_not_virtual_or_pad and not is_variable: self.get_params().append(self.get_parent().get_parent().Param( block=self, n=odict({'name': 'Block Alias', @@ -413,7 +414,7 @@ class Block(Element): """ n = odict() n['key'] = self.get_key() - n['param'] = map(lambda p: p.export_data(), self.get_params()) + n['param'] = map(lambda p: p.export_data(), sorted(self.get_params(), key=str)) if 'bus' in map(lambda a: a.get_type(), self.get_sinks()): n['bus_sink'] = str(1); if 'bus' in map(lambda a: a.get_type(), self.get_sources()): |