[pypy-svn] pypy default: Fix: os.path.join cannot just be replaced by py.path.join.

amauryfa commits-noreply at bitbucket.org
Tue Jan 18 22:26:58 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r40905:ff10b8337aac
Date: 2011-01-18 22:25 +0100
http://bitbucket.org/pypy/pypy/changeset/ff10b8337aac/

Log:	Fix: os.path.join cannot just be replaced by py.path.join. "abs=1"
	is needed to keep the absolute path of the second argument.

diff --git a/pypy/translator/platform/__init__.py b/pypy/translator/platform/__init__.py
--- a/pypy/translator/platform/__init__.py
+++ b/pypy/translator/platform/__init__.py
@@ -180,7 +180,7 @@
             dirname = ofiles[0].dirpath()
         else:
             dirname = udir.join('module_cache')
-        exe_name = dirname.join(outputfilename)
+        exe_name = dirname.join(outputfilename, abs=True)
         if standalone:
             if self.exe_ext:
                 exe_name += '.' + self.exe_ext


More information about the Pypy-commit mailing list