Merge pull request #3574 from mikeizbicki:patch-1

This commit is contained in:
Vadim Pisarevsky 2015-01-15 11:36:51 +00:00
commit c58373dbea

View File

@ -861,7 +861,7 @@ class PythonWrapperGenerator(object):
decls = self.parser.parse(hdr)
if len(decls) == 0:
continue
self.code_include.write( '#include "{}"\n'.format(hdr[hdr.rindex('opencv2/'):]) )
self.code_include.write( '#include "{0}"\n'.format(hdr[hdr.rindex('opencv2/'):]) )
for decl in decls:
name = decl[0]
if name.startswith("struct") or name.startswith("class"):