diff options
author | crupest <crupest@outlook.com> | 2019-03-28 19:29:03 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-28 19:29:03 +0800 |
commit | 8199bbb3130812e5c8fac6254de6971ef6b9c17e (patch) | |
tree | f649f830459a11992b3836a51502f5815faf53d1 /tools | |
parent | 79aad12ca6239ab3b3780ba0d56f9102e366c009 (diff) | |
download | cru-8199bbb3130812e5c8fac6254de6971ef6b9c17e.tar.gz cru-8199bbb3130812e5c8fac6254de6971ef6b9c17e.tar.bz2 cru-8199bbb3130812e5c8fac6254de6971ef6b9c17e.zip |
...
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build.py b/tools/build.py index 329e14e7..dac1f957 100644 --- a/tools/build.py +++ b/tools/build.py @@ -22,7 +22,7 @@ vs_path = 'C:/Program Files (x86)/Microsoft Visual Studio/2017/{edition}'.format def setup_vs_env(): old_dir = os.getcwd() os.chdir(os.path.join(vs_path, 'VC/Auxiliary/Build')) - output = subprocess.check_output('vcvarsall.bat {arch} & set'.format(arch=args.arch), text=True) + output = subprocess.check_output('vcvarsall.bat {arch} & set'.format(arch=args.arch), encoding='utf-8') for line in output.splitlines(): e = line.find('=') os.environ[line[:e]] = line[e+1:] |