diff options
Diffstat (limited to 'gr-utils/python/modtool/core/rm.py')
-rw-r--r-- | gr-utils/python/modtool/core/rm.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/core/rm.py b/gr-utils/python/modtool/core/rm.py index 80011b15ba..390dbd0ed6 100644 --- a/gr-utils/python/modtool/core/rm.py +++ b/gr-utils/python/modtool/core/rm.py @@ -137,6 +137,8 @@ class ModToolRemove(ModTool): may contain references to the globbed files cmakeedit_func - If the CMakeLists.txt needs special editing, use this """ + if self.cli: + from ..cli import cli_input # 1. Create a filtered list files = [] for g in globs: @@ -155,7 +157,7 @@ class ModToolRemove(ModTool): yes = self.info['yes'] for f in files_filt: b = os.path.basename(f) - if not yes: + if not yes and self.cli: ans = cli_input("Really delete {}? [Y/n/a/q]: ".format(f)).lower().strip() if ans == 'a': yes = True |