summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormormj <mormjb@gmail.com>2020-10-19 08:12:58 -0400
committermormj <34754695+mormj@users.noreply.github.com>2020-10-20 08:39:44 -0400
commita61c0c32b92dad34d4c1dda77064f36ce2780fcf (patch)
tree3715e3dc5bf51c5f5a62adf2e57aafe319a8177b
parent28eb0c65f1ebb2004c049749eeeef1d9ed042b7e (diff)
modtool: check blockname before other checks
-rw-r--r--gr-utils/modtool/cli/add.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/modtool/cli/add.py b/gr-utils/modtool/cli/add.py
index 89c7db07a3..6a22189a68 100644
--- a/gr-utils/modtool/cli/add.py
+++ b/gr-utils/modtool/cli/add.py
@@ -44,6 +44,7 @@ def cli(**kwargs):
kwargs['cli'] = True
self = ModToolAdd(**kwargs)
click.secho("GNU Radio module name identified: " + self.info['modname'], fg='green')
+ get_blockname(self)
get_blocktype(self)
get_lang(self)
info_lang = {'cpp': 'C++', 'python': 'Python'}[self.info['lang']]
@@ -51,7 +52,6 @@ def cli(**kwargs):
if ((self.skip_subdirs['lib'] and self.info['lang'] == 'cpp')
or (self.skip_subdirs['python'] and self.info['lang'] == 'python')):
raise ModToolException('Missing or skipping relevant subdir.')
- get_blockname(self)
click.secho("Block/code identifier: " + self.info['blockname'], fg='green')
if not self.license_file:
get_copyrightholder(self)