Author: Sebastian Pawlu? <[email protected]>
Branch: 
Changeset: r71329:13fe2051d122
Date: 2014-05-06 13:13 +0200
http://bitbucket.org/pypy/pypy/changeset/13fe2051d122/

Log:    Making rpythondir more robust, this should handle rpython symlinking

diff --git a/rpython/tool/version.py b/rpython/tool/version.py
--- a/rpython/tool/version.py
+++ b/rpython/tool/version.py
@@ -2,7 +2,7 @@
 import os
 from subprocess import Popen, PIPE
 import rpython
-rpythondir = os.path.dirname(os.path.abspath(rpython.__file__))
+rpythondir = os.path.dirname(os.path.realpath(rpython.__file__))
 rpythonroot = os.path.dirname(rpythondir)
 default_retval = '?', '?'
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to