[pypy-svn] rev 883 - pypy/trunk/src/pypy/interpreter
mwh at codespeak.net
mwh at codespeak.net
Sat Jun 21 19:26:49 CEST 2003
Author: mwh
Date: Sat Jun 21 19:26:49 2003
New Revision: 883
Modified:
pypy/trunk/src/pypy/interpreter/py.py
Log:
*cough* take notice of -i *cough*
still need to do some banner suppression, though
Modified: pypy/trunk/src/pypy/interpreter/py.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/py.py (original)
+++ pypy/trunk/src/pypy/interpreter/py.py Sat Jun 21 19:26:49 2003
@@ -28,6 +28,7 @@
def main_(argv=None):
args = option.process_options(get_main_options(), Options, argv[1:])
space = option.objspace()
+ go_interactive = Options.interactive
if Options.command:
try:
main.run_string(Options.command[0], '<string>', space)
@@ -39,9 +40,10 @@
except baseobjspace.PyPyError, pypyerr:
pypyerr.operationerr.print_detailed_traceback(pypyerr.space)
else:
+ go_interactive = 1
+ if go_interactive:
con = interactive.PyPyConsole(space)
con.interact()
-
if __name__ == '__main__':
main_(sys.argv)
More information about the Pypy-commit
mailing list