diff options
author | Martin Braun | 2013-04-03 09:11:26 +0200 |
---|---|---|
committer | Johnathan Corgan | 2013-04-03 00:34:02 -0700 |
commit | 0a77df0393de27416d772b5ca7c2807ba4600bed (patch) | |
tree | 380e463dc5dd0361cb8d09b6f6e431f7b607aab7 /gr-utils/src/python/modtool/util_functions.py | |
parent | 78cd4026c0a9b902162e94905b60a9dd44a07bb7 (diff) | |
download | gnuradio-0a77df0393de27416d772b5ca7c2807ba4600bed.tar.gz gnuradio-0a77df0393de27416d772b5ca7c2807ba4600bed.tar.bz2 gnuradio-0a77df0393de27416d772b5ca7c2807ba4600bed.zip |
modtool: fixes case when modulname ends in 0
Diffstat (limited to 'gr-utils/src/python/modtool/util_functions.py')
-rw-r--r-- | gr-utils/src/python/modtool/util_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/src/python/modtool/util_functions.py b/gr-utils/src/python/modtool/util_functions.py index 4ca294ac3..c40dbd73b 100644 --- a/gr-utils/src/python/modtool/util_functions.py +++ b/gr-utils/src/python/modtool/util_functions.py @@ -92,7 +92,7 @@ def get_modname(): pass # OK, there's no gnuradio.project. So, we need to guess. cmfile = open('CMakeLists.txt', 'r').read() - regexp = r'(project\s*\(\s*|GR_REGISTER_COMPONENT\(")gr-(?P<modname>[a-zA-Z1-9-_]+)(\s*(CXX)?|" ENABLE)' + regexp = r'(project\s*\(\s*|GR_REGISTER_COMPONENT\(")gr-(?P<modname>[a-zA-Z0-9-_]+)(\s*(CXX)?|" ENABLE)' try: modname = re.search(regexp, cmfile, flags=re.MULTILINE).group('modname').strip() if modname in modname_trans.keys(): |