mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
find -> rindex
This commit is contained in:
parent
120b3a1e77
commit
dd67ea0210
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user