Commit dd67ea02 authored by Alexander Mordvintsev's avatar Alexander Mordvintsev

find -> rindex

parent 120b3a1e
......@@ -830,7 +830,7 @@ class PythonWrapperGenerator(object):
# step 1: scan the headers and build more descriptive maps of classes, consts, functions
for hdr in srcfiles:
self.code_include.write( '#include "{}"\n'.format(hdr[hdr.find('opencv2/'):]) )
self.code_include.write( '#include "{}"\n'.format(hdr[hdr.rindex('opencv2/'):]) )
decls = parser.parse(hdr)
for decl in decls:
name = decl[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment