Author: Alexander Hesse <[email protected]>
Branch: split-rpython
Changeset: r59861:3b0c754dbdac
Date: 2013-01-07 03:29 +0100
http://bitbucket.org/pypy/pypy/changeset/3b0c754dbdac/

Log:    Assume a working sys.path

diff --git a/pypy/bin/checkmodule.py b/pypy/bin/checkmodule.py
--- a/pypy/bin/checkmodule.py
+++ b/pypy/bin/checkmodule.py
@@ -7,7 +7,6 @@
 modules compiles without doing a full translation.
 """
 import sys, os
-sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), 
'..', '..')))
 
 from pypy.objspace.fake.checkmodule import checkmodule
 
diff --git a/pypy/bin/pyinteractive.py b/pypy/bin/pyinteractive.py
--- a/pypy/bin/pyinteractive.py
+++ b/pypy/bin/pyinteractive.py
@@ -9,9 +9,6 @@
 import os, sys
 import time
 
-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
 from optparse import make_option
diff --git a/pypy/bin/reportstaticdata.py b/pypy/bin/reportstaticdata.py
--- a/pypy/bin/reportstaticdata.py
+++ b/pypy/bin/reportstaticdata.py
@@ -28,7 +28,6 @@
 """
 
 import sys
-sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), 
'..', '..')))
 
 from rpython.translator.tool.staticsizereport import print_report
 
diff --git a/pypy/bin/translatorshell.py b/pypy/bin/translatorshell.py
--- a/pypy/bin/translatorshell.py
+++ b/pypy/bin/translatorshell.py
@@ -24,7 +24,6 @@
 """
 
 import os, sys
-sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), 
'..', '..')))
 
 from rpython.translator.interactive import Translation
 from rpython.rtyper.rtyper import *
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to