From 8afc2f9ba7eb4dac1eec801ecc4dc7a0351e3ea8 Mon Sep 17 00:00:00 2001
From: Arpit Gupta <guptarpit1997@gmail.com>
Date: Wed, 6 Mar 2019 18:35:29 +0530
Subject: gr_modtool: Fix for parameter wrap in cli inputs and gr_modtool info

---
 gr-utils/python/modtool/cli/add.py   | 2 +-
 gr-utils/python/modtool/core/info.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'gr-utils/python')

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
 
-- 
cgit v1.2.3