fixed the path splitting

This commit is contained in:
Tarek Ziade 2011-05-19 15:51:54 +02:00
parent fd88318ac4
commit 0e3f3a7076
1 changed files with 2 additions and 1 deletions

View File

@ -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')