summaryrefslogtreecommitdiff
path: root/gr-utils/src/python
diff options
context:
space:
mode:
authorMartin Braun2013-04-03 09:11:26 +0200
committerJohnathan Corgan2013-04-03 00:34:02 -0700
commit0a77df0393de27416d772b5ca7c2807ba4600bed (patch)
tree380e463dc5dd0361cb8d09b6f6e431f7b607aab7 /gr-utils/src/python
parent78cd4026c0a9b902162e94905b60a9dd44a07bb7 (diff)
downloadgnuradio-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')
-rw-r--r--gr-utils/src/python/modtool/util_functions.py2
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():