Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r60251:cd09ce3faa2d
Date: 2013-01-20 22:26 +0200
http://bitbucket.org/pypy/pypy/changeset/cd09ce3faa2d/

Log:    fix

diff --git a/rpython/translator/platform/posix.py 
b/rpython/translator/platform/posix.py
--- a/rpython/translator/platform/posix.py
+++ b/rpython/translator/platform/posix.py
@@ -5,7 +5,7 @@
 from rpython.translator.platform import Platform, log, _run_subprocess
 
 import rpython
-rpydir = os.path.dirname(rpython.__file__)
+rpydir = str(py.path.local(rpython.__file__).join('..'))
 
 class BasePosix(Platform):
     exe_ext = ''
diff --git a/rpython/translator/platform/windows.py 
b/rpython/translator/platform/windows.py
--- a/rpython/translator/platform/windows.py
+++ b/rpython/translator/platform/windows.py
@@ -7,7 +7,7 @@
 from rpython.translator.platform import Platform, posix
 
 import rpython
-rpydir = os.path.dirname(rpython.__file__)
+rpydir = str(py.path.local(rpython.__file__).join('..'))
 
 def _get_compiler_type(cc, x64_flag):
     import subprocess
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to