Merge pull request #17573 from alexcohn:fix/android_windows_build
* fixing #17572 https://github.com/opencv/opencv/issues/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
This commit is contained in:
parent
6bd87e8146
commit
a7cc1159cd
@ -59,6 +59,8 @@ def check_executable(cmd):
|
|||||||
try:
|
try:
|
||||||
log.debug("Executing: %s" % cmd)
|
log.debug("Executing: %s" % cmd)
|
||||||
result = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
|
result = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
|
||||||
|
if not isinstance(result, str):
|
||||||
|
result = result.decode("utf-8")
|
||||||
log.debug("Result: %s" % (result+'\n').split('\n')[0])
|
log.debug("Result: %s" % (result+'\n').split('\n')[0])
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user