diff options
Diffstat (limited to 'gr-utils/python/modtool/modtool_rm.py')
-rw-r--r-- | gr-utils/python/modtool/modtool_rm.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-utils/python/modtool/modtool_rm.py b/gr-utils/python/modtool/modtool_rm.py index 47128dbc87..4fcd79e2b1 100644 --- a/gr-utils/python/modtool/modtool_rm.py +++ b/gr-utils/python/modtool/modtool_rm.py @@ -25,7 +25,7 @@ import re import sys import glob -from util_functions import remove_pattern_from_file +from util_functions import remove_pattern_from_file, SequenceCompleter from modtool_base import ModTool from cmakefile_editor import CMakeFileEditor @@ -46,7 +46,8 @@ class ModToolRemove(ModTool): elif len(args) >= 2: self._info['pattern'] = args[1] else: - self._info['pattern'] = raw_input('Which blocks do you want to delete? (Regex): ') + with SequenceCompleter(): + self._info['pattern'] = raw_input('Which blocks do you want to delete? (Regex): ') if len(self._info['pattern']) == 0: self._info['pattern'] = '.' @@ -127,7 +128,7 @@ class ModToolRemove(ModTool): # 1. Create a filtered list files = [] for g in globs: - files = files + glob.glob("%s/%s"% (path, g)) + files = files + sorted(glob.glob("%s/%s"% (path, g))) files_filt = [] print "Searching for matching files in %s/:" % path for f in files: |