objc(test): repair binary resource files

pull/18817/head
Alexander Alekhin 4 years ago
parent 4d00ed8df7
commit 24f2b7dd3f
  1. 2
      modules/objc/generator/gen_objc.py

@ -1368,6 +1368,8 @@ typedef NS_ENUM(int, {2}) {{
readme_out.write(readme_body)
if framework_name != "OpenCV":
for dirname, dirs, files in os.walk(os.path.join(testdir, "test")):
if dirname.endswith('/resources'):
continue # don't touch resource binary files
for filename in files:
filepath = os.path.join(dirname, filename)
with io.open(filepath, encoding="utf-8", errors="ignore") as file:

Loading…
Cancel
Save