]> granicus.if.org Git - python/commitdiff
fixed the path splitting
authorTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 13:51:54 +0000 (15:51 +0200)
committerTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 13:51:54 +0000 (15:51 +0200)
Lib/packaging/compiler/msvc9compiler.py

index 39b2e8455a0d2f8fe46d55c810c9f4ac2ae89952..7a19f47447a1c3c617e89550a3b3c998759dfe90 100644 (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')