diff options
author | Arpit Gupta <guptarpit1997@gmail.com> | 2019-03-06 18:35:29 +0530 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2019-03-31 22:49:33 +0200 |
commit | 8afc2f9ba7eb4dac1eec801ecc4dc7a0351e3ea8 (patch) | |
tree | b440ccfa21ff405f221f2ee06099514927a4300e /gr-utils/python | |
parent | 0cb3f2a03d4e9320b7882251ed14876db07249d2 (diff) |
gr_modtool: Fix for parameter wrap in cli inputs and gr_modtool info
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/modtool/cli/add.py | 2 | ||||
-rw-r--r-- | gr-utils/python/modtool/core/info.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/cli/add.py b/gr-utils/python/modtool/cli/add.py index fcc2ff539b..51a63ffc60 100644 --- a/gr-utils/python/modtool/cli/add.py +++ b/gr-utils/python/modtool/cli/add.py @@ -127,7 +127,7 @@ def get_copyrightholder(self): def get_arglist(self): """ Get the argument list of the block to be added """ if self.info['arglist'] is not None: - self.info['arglist'] = cli_input('Enter valid argument list, including default arguments: ') + self.info['arglist'] = click.prompt(click.style('Enter valid argument list, including default arguments: \n', fg='cyan'), prompt_suffix='') def get_py_qa(self): """ Get a boolean value for addition of py_qa """ diff --git a/gr-utils/python/modtool/core/info.py b/gr-utils/python/modtool/core/info.py index 488445df47..2a483d18c4 100644 --- a/gr-utils/python/modtool/core/info.py +++ b/gr-utils/python/modtool/core/info.py @@ -119,7 +119,7 @@ class ModToolInfo(ModTool): inc_dirs += line.replace('GNURADIO_RUNTIME_INCLUDE_DIRS:{}='.format(path_or_internal), '').strip().split(';') except IOError: pass - if (not inc_dirs or inc_dirs.isspace) and self._suggested_dirs is not None: + if not inc_dirs and self._suggested_dirs is not None: inc_dirs = [os.path.normpath(path) for path in self._suggested_dirs.split(':') if os.path.isdir(path)] return inc_dirs |