Fix building premake on Windows.
Broken before when vswhere emitted unicode characters.
This commit is contained in:
parent
72f19a60a9
commit
9828e085b0
|
@ -146,7 +146,7 @@ def import_vs_environment():
|
|||
install_path = None
|
||||
env_tool_args = None
|
||||
|
||||
vswhere = subprocess.check_output('third_party/vswhere/vswhere.exe -version "[15,)" -latest -format json', shell=False, universal_newlines=True)
|
||||
vswhere = subprocess.check_output('third_party/vswhere/vswhere.exe -version "[15,)" -latest -format json -utf8', shell=False, universal_newlines=True, encoding="utf-8")
|
||||
if vswhere:
|
||||
vswhere = json.loads(vswhere)
|
||||
if vswhere and len(vswhere) > 0:
|
||||
|
|
Loading…
Reference in New Issue