Added flaky support for finding Matlab on Windows machines

This commit is contained in:
hbristow
2013-07-30 23:58:32 +10:00
parent 9cc949e341
commit 6549e5e052
6 changed files with 387 additions and 40 deletions

View File

@@ -9,8 +9,12 @@ class MatlabWrapperGenerator(object):
ns = {}
for file in input_files:
# get the file name
name = os.path.splitext(os.path.basename(file))[0]
ns[name] = parser.parse(file)
name = re.findall('include/opencv2/([^./]+)', file)[0]
#name = os.path.splitext(os.path.basename(file))[0]
try:
ns[name] = ns[name] + parser.parse(file)
except KeyError:
ns[name] = parser.parse(file)
# cleanify the parser output
parse_tree = ParseTree()