Commits

Edd Barrett  committed 259239b

Check that we are running under PyPy.

"< arigato> for example I think that jitviewer doesn't work on CPython"

  • Participants
  • Parent commits c8b4031
  • Branches argparse-collect

Comments (0)

Files changed (1)

File bin/jitviewer.py

 pythonpath = os.path.dirname(os.path.dirname(script_path))
 sys.path.append(pythonpath)
 
+# Check we are running with PyPy
+if "pypy" not in os.path.basename(sys.executable):
+    print("error: jitviewer must be run with PyPy")
+    sys.exit(1)
+
 from _jitviewer.app import main
 main(sys.argv)