objc(test): repair binary resource files

This commit is contained in:
Alexander Alekhin 2020-11-16 05:22:45 +00:00
parent 4d00ed8df7
commit 24f2b7dd3f

View File

@ -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: