[Python-checkins] r84278 - python/branches/py3k/setup.py
matthias.klose
python-checkins at python.org
Mon Aug 23 18:47:10 CEST 2010
Author: matthias.klose
Date: Mon Aug 23 18:47:09 2010
New Revision: 84278
Log:
Fix builds with builddir != srcdir, introduced in r83988.
os.path.dirname(__file__) points to the scrdir, not the builddir.
Use os.getcwd() instead.
Modified:
python/branches/py3k/setup.py
Modified: python/branches/py3k/setup.py
==============================================================================
--- python/branches/py3k/setup.py (original)
+++ python/branches/py3k/setup.py Mon Aug 23 18:47:09 2010
@@ -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)
More information about the Python-checkins
mailing list