]> granicus.if.org Git - python/commit
Py_Main(): Add a check for the PYTHONINSPECT environment variable
authorBarry Warsaw <barry@python.org>
Sun, 29 Jun 2003 17:07:06 +0000 (17:07 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 29 Jun 2003 17:07:06 +0000 (17:07 +0000)
commitd86dcd35540327ac7ba559e8c7852bd82ab84ce7
tree756f37afb6686d6b748d0c8df840f354a7209606
parente3a565eed0a8870e5f8b5d05040c0207ee99140f
Py_Main(): Add a check for the PYTHONINSPECT environment variable
after running the script so that a program could do something like:

os.environ['PYTHONINSPECT'] = 1

to programmatically enter a prompt at the end.

(After a patch by Skip Montanaro w/ proposal by Troy Melhase
Modules/main.c