Commit 8914fed8 authored by Victor Stinner's avatar Victor Stinner

fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str

Don't encode the path list
parent 99991854
......@@ -356,8 +356,7 @@ class MSVCCompiler(CCompiler) :
vc_env = query_vcvarsall(VERSION, plat_spec)
# take care to only use strings in the environment.
self.__paths = [part.encode('mbcs') for part in
vc_env['path'].split(os.pathsep)]
self.__paths = vc_env['path'].split(os.pathsep)
os.environ['lib'] = vc_env['lib']
os.environ['include'] = vc_env['include']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment