[pypy-commit] pypy split-rpython: I'm sorry :( py.py -> pyinteractive.py

Aquana noreply at buildbot.pypy.org
Sat Jan 5 19:36:44 CET 2013


Author: Alexander Hesse <webmaster at aquanasoft.de>
Branch: split-rpython
Changeset: r59764:69a40a56749f
Date: 2013-01-05 19:10 +0100
http://bitbucket.org/pypy/pypy/changeset/69a40a56749f/

Log:	I'm sorry :( py.py -> pyinteractive.py

diff --git a/pypy/bin/py.py b/pypy/bin/pyinteractive.py
rename from pypy/bin/py.py
rename to pypy/bin/pyinteractive.py
--- a/pypy/bin/py.py
+++ b/pypy/bin/pyinteractive.py
@@ -9,7 +9,8 @@
 import os, sys
 import time
 
-sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..')))
+if os.path.exists(os.path.join(os.path.dirname(__file__), '..', '..', 'pypy', '__init__.py')):
+    sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..')))
 
 import pypy
 from pypy.tool import option


More information about the pypy-commit mailing list