mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fixed the path splitting
This commit is contained in:
parent
fd88318ac4
commit
0e3f3a7076
1 changed files with 2 additions and 1 deletions
|
@ -356,7 +356,8 @@ class MSVCCompiler(CCompiler) :
|
|||
vc_env = query_vcvarsall(VERSION, plat_spec)
|
||||
|
||||
# take care to only use strings in the environment.
|
||||
self.__paths = vc_env['path'].split(os.pathsep).encode('mbcs')
|
||||
self.__paths = [part.encode('mbcs') for part in
|
||||
vc_env['path'].split(os.pathsep)]
|
||||
os.environ['lib'] = vc_env['lib'].encode('mbcs')
|
||||
os.environ['include'] = vc_env['include'].encode('mbcs')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue