Fix Mono builds with Python 3.

A subprocess call wasn't specifying an encoding,
so this gave a TypeError in Python 3.
This commit is contained in:
Pieter-Jan Briers 2018-03-18 10:51:35 +01:00
parent 760b0567a6
commit 998f1977a8

View file

@ -161,7 +161,7 @@ def configure(env):
mono_lib_path = ''
mono_so_name = ''
mono_prefix = subprocess.check_output(["pkg-config", "mono-2", "--variable=prefix"]).strip()
mono_prefix = subprocess.check_output(["pkg-config", "mono-2", "--variable=prefix"], encoding="utf8").strip()
tmpenv = Environment()
tmpenv.AppendENVPath('PKG_CONFIG_PATH', os.getenv('PKG_CONFIG_PATH'))