[pypy-svn] pypy default: sometimes the library is a py.path.local object

amauryfa commits-noreply at bitbucket.org
Mon Feb 28 20:24:37 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r42349:f587142fce96
Date: 2011-02-28 13:02 +0100
http://bitbucket.org/pypy/pypy/changeset/f587142fce96/

Log:	sometimes the library is a py.path.local object

diff --git a/pypy/translator/platform/windows.py b/pypy/translator/platform/windows.py
--- a/pypy/translator/platform/windows.py
+++ b/pypy/translator/platform/windows.py
@@ -122,6 +122,7 @@
     def _libs(self, libraries):
         libs = []
         for lib in libraries:
+            lib = str(lib)
             if lib.endswith('.dll'):
                 lib = lib[:-4]
             libs.append('%s.lib' % (lib,))


More information about the Pypy-commit mailing list