diff setup.py @ 64242:aa25b8677cc3

Fix builds with builddir != srcdir, introduced in r83988. os.path.dirname(__file__) points to the scrdir, not the builddir. Use os.getcwd() instead.
author Matthias Klose <doko@ubuntu.com>
date Mon, 23 Aug 2010 16:47:09 +0000
parents 4742e7aea2f5
children 00c6957c7719
line wrap: on
line diff
--- a/setup.py	Mon Aug 23 15:27:26 2010 +0000
+++ b/setup.py	Mon Aug 23 16:47:09 2010 +0000
@@ -234,7 +234,7 @@
         # will fail.
         with open(_BUILDDIR_COOKIE, "wb") as f:
             f.write(self.build_lib.encode('utf-8', 'surrogateescape'))
-        abs_build_lib = os.path.join(os.path.dirname(__file__), self.build_lib)
+        abs_build_lib = os.path.join(os.getcwd(), self.build_lib)
         if abs_build_lib not in sys.path:
             sys.path.append(abs_build_lib)