Skip to content

Commit a7cc115

Browse files
authored
Merge pull request opencv#17573 from alexcohn:fix/android_windows_build
* fixing opencv#17572 opencv#17572 Build for Android failed: "can't concat str to bytes" on Windows 10 64bit with python 3.6.6 * similar to changes in platforms/winpack_dldt/build_package.py
1 parent 6bd87e8 commit a7cc115

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platforms/android/build_sdk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def check_executable(cmd):
5959
try:
6060
log.debug("Executing: %s" % cmd)
6161
result = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
62+
if not isinstance(result, str):
63+
result = result.decode("utf-8")
6264
log.debug("Result: %s" % (result+'\n').split('\n')[0])
6365
return True
6466
except Exception as e:

0 commit comments

Comments
 (0)