1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Maciej Fijalkowski  committed 04c3caf

require pypy-c to run

  • Participants
  • Parent commits a405380
  • Branches default

Comments (0)

Files changed (1)

File baseviewer.py

View file
         for e in path:
             if e:
                 loop = loop.chunks[int(e)]
+        
         startline, endline = loop.linerange
         if loop.filename is not None:
-            try:
-                code = load_code(loop.filename, loop.name, loop.startlineno)
-            except OSError:
-                code = load_code(os.path.join(self.extra_path, loop.filename),
-                                 loop.name, loop.startlineno)
+            code = load_code(loop.filename, loop.name, loop.startlineno)
             source = CodeRepr(inspect.getsource(code), code, loop)
         else:
             source = CodeReprNoFile(loop)
         return flask.jsonify(d)
 
 def main():
+    if not '__pypy__' in sys.builtin_module_names:
+        print "Please run it using pypy-c"
+        sys.exit(1)
     if len(sys.argv) != 2:
         print __doc__
         sys.exit(1)