aboutsummaryrefslogtreecommitdiff
path: root/pypy/bin
diff options
context:
space:
mode:
authorAntonio Cuni <anto.cuni@gmail.com>2012-06-08 17:06:23 +0200
committerAntonio Cuni <anto.cuni@gmail.com>2012-06-08 17:06:23 +0200
commitd8f963637105ad8eec197219ed40903b6b08a5e4 (patch)
tree2125328157cdda96dd06d6e99e3ec0fc8354daa6 /pypy/bin
parentfix typos (diff)
downloadpypy-d8f963637105ad8eec197219ed40903b6b08a5e4.tar.gz
pypy-d8f963637105ad8eec197219ed40903b6b08a5e4.tar.bz2
pypy-d8f963637105ad8eec197219ed40903b6b08a5e4.zip
fix py.py now that pypy_initial_path has gone
Diffstat (limited to 'pypy/bin')
-rwxr-xr-xpypy/bin/py.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pypy/bin/py.py b/pypy/bin/py.py
index 393e379119..e0918cab98 100755
--- a/pypy/bin/py.py
+++ b/pypy/bin/py.py
@@ -89,12 +89,12 @@ def main_(argv=None):
space.setitem(space.sys.w_dict, space.wrap('executable'),
space.wrap(argv[0]))
- # call pypy_initial_path: the side-effect is that it sets sys.prefix and
+ # call pypy_find_stdlib: the side-effect is that it sets sys.prefix and
# sys.exec_prefix
- srcdir = os.path.dirname(os.path.dirname(pypy.__file__))
- space.appexec([space.wrap(srcdir)], """(srcdir):
+ executable = argv[0]
+ space.appexec([space.wrap(executable)], """(executable):
import sys
- sys.pypy_initial_path(srcdir)
+ sys.pypy_find_stdlib(executable)
""")
# set warning control options (if any)