1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Alex Gaynor  committed aa03192 Merge

merged upstream.

  • Participants
  • Parent commits 001fb4a, 259f6dd
  • Branches default

Comments (0)

Files changed (1)

File bin/jitviewer.py

View file
 except ImportError:
     sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..')))
 
+try:
+    import pypy
+except ImportError:
+    import __pypy__
+    sys.path.append(os.path.join(__pypy__.__file__, '..', '..', '..'))
+    try:
+        import pypy
+    except ImportError:
+        raise ImportError('Could not import pypy module, make sure to '
+            'add the pypy module to PYTHONPATH')
+
 import cgi
 import flask
 import inspect