objc(test): repair binary resource files
This commit is contained in:
parent
4d00ed8df7
commit
24f2b7dd3f
@ -1368,6 +1368,8 @@ typedef NS_ENUM(int, {2}) {{
|
|||||||
readme_out.write(readme_body)
|
readme_out.write(readme_body)
|
||||||
if framework_name != "OpenCV":
|
if framework_name != "OpenCV":
|
||||||
for dirname, dirs, files in os.walk(os.path.join(testdir, "test")):
|
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:
|
for filename in files:
|
||||||
filepath = os.path.join(dirname, filename)
|
filepath = os.path.join(dirname, filename)
|
||||||
with io.open(filepath, encoding="utf-8", errors="ignore") as file:
|
with io.open(filepath, encoding="utf-8", errors="ignore") as file:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user