Skip to content
Snippets Groups Projects
Commit 105c8f18 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Python: fixed mex wildcard compilation

parent 746cbe24
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ class MexBuilder(object):
else:
match_list = []
for cfile in self.c_files:
if re.search(file_name, cfile):
if re.search(file_name, cfile) is not None:
match_list.append(cfile)
if len(match_list) is 0:
errorMsg = "No file corresponds to: %s" % file_name
......@@ -232,7 +232,7 @@ class MexBuilder(object):
# Let's compile each match
for cfile in match_list:
file_path = self.c_files[file_name]
file_path = self.c_files[cfile]
if (self.mex_info is None) \
or ( (self.mex_info is not None) \
and (self.mex_info.isExcluded(file_path) is False) ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment