Author: Edd Barrett <vex...@gmail.com> Branch: argparse-collect Changeset: r236:a4f3ed9615b6 Date: 2013-08-30 23:35 +0100 http://bitbucket.org/pypy/jitviewer/changeset/a4f3ed9615b6/
Log: Search the PATH when invoking pypy interpreter for log collection. diff --git a/_jitviewer/app.py b/_jitviewer/app.py --- a/_jitviewer/app.py +++ b/_jitviewer/app.py @@ -197,14 +197,14 @@ """ Collect a log file using pypy """ # XXX Randomise log file name - # XXX Search path import subprocess - p = subprocess.Popen(args, - env={"PYPYLOG" : "jit-log-opt,jit-backend:%s" % (logpath, )} - ) - p.communicate() + # possibly make this configurable if someone asks... + os.environ["PYPYLOG"] = "jit-log-opt,jit-backend:%s" % (logpath, ) + print("Collecting log...") + p = subprocess.Popen(args, env=os.environ).communicate() + # We don't check the return status. The user may want to see traces # for a failing program! return os.path.abspath(logpath) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit