Antonio Cuni avatar Antonio Cuni committed 36167b2

(lac, antocuni) put the pypy dir in front of sys.path, to be sure that "import pypy" really finds the current package (and not, e.g., another pypy which is in PYTHONPATH)

Comments (0)

Files changed (2)

pypy/doc/getting-started.rst

 
 .. _`downloading them from the download page`: http://pypy.org/download.html
 
-If you choose to use mercurial,
-first make sure you have ``subversion`` installed.
 You must issue the following command on your
 command line, DOS box, or terminal::
 
     hg clone http://bitbucket.org/pypy/pypy pypy
 
-If you get an error like this::
-
-    abort: repository [svn]http://codespeak.net/svn/pypy/build/testrunner not found!
-
-it probably means that your mercurial version is too old. You need at least
-Mercurial 1.6 to clone the PyPy repository.
-
 This will clone the repository and place it into a directory
 named ``pypy``, and will get you the PyPy source in
 ``pypy/pypy`` and documentation files in ``pypy/pypy/doc``.

pypy/doc/pypyconfig.py

 
 def setup(app):
     import sys, os
-    sys.path.append(os.path.abspath("../../"))
+    sys.path.insert(0, os.path.abspath("../../"))
     from pypy.config import makerestdoc
     import py
     role = makerestdoc.register_config_role(py.path.local())
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.