Author: Edd Barrett <vex...@gmail.com> Branch: argparse-collect Changeset: r243:259239bc7fe1 Date: 2013-09-05 13:12 +0100 http://bitbucket.org/pypy/jitviewer/changeset/259239bc7fe1/
Log: Check that we are running under PyPy. "< arigato> for example I think that jitviewer doesn't work on CPython" diff --git a/bin/jitviewer.py b/bin/jitviewer.py --- a/bin/jitviewer.py +++ b/bin/jitviewer.py @@ -6,5 +6,10 @@ 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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit