Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r261:d416bac6c441
Date: 2014-09-16 11:25 -0700
http://bitbucket.org/pypy/jitviewer/changeset/d416bac6c441/

Log:    Don't try so many tricks to find rpython, just give a good error
        message

diff --git a/_jitviewer/app.py b/_jitviewer/app.py
--- a/_jitviewer/app.py
+++ b/_jitviewer/app.py
@@ -31,13 +31,8 @@
 try:
     import rpython
 except ImportError:
-    import __pypy__
-    sys.path.append(os.path.join(__pypy__.__file__, '..', '..', '..'))
-    try:
-        import rpython
-    except ImportError:
-        failout('Could not import pypy module, make sure to '
-            'add the pypy module to PYTHONPATH')
+    failout('Could not import the rpython module, make sure to add the '
+            'rpython module to PYTHONPATH')
 
 import jinja2
 if jinja2.__version__ < '2.6':
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to