1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

build: fix swift detection with python3

python3 returns bytes instead of str, unlike python2. explicitly decode
the output.
This commit is contained in:
Akemi 2018-02-12 16:20:32 +01:00 committed by Kevin Mitchell
parent 3f73520897
commit c82fed85b9

View File

@ -6,7 +6,7 @@ def __run(cmd):
stdout=Utils.subprocess.PIPE, stdout=Utils.subprocess.PIPE,
stderr=Utils.subprocess.PIPE, stderr=Utils.subprocess.PIPE,
shell=True) shell=True)
output = cmd.stdout.read().strip() output = cmd.stdout.read().decode().strip()
return output return output
except Exception: except Exception:
return "" return ""