From: <zy...@us...> - 2010-10-19 03:02:57
|
Revision: 7161 http://jython.svn.sourceforge.net/jython/?rev=7161&view=rev Author: zyasoft Date: 2010-10-19 03:02:51 +0000 (Tue, 19 Oct 2010) Log Message: ----------- Fixed test for console interactivity. This allows ipython and similar readline using scripts to run without -i. Modified Paths: -------------- trunk/jython/src/org/python/util/jython.java Modified: trunk/jython/src/org/python/util/jython.java =================================================================== --- trunk/jython/src/org/python/util/jython.java 2010-10-18 02:19:18 UTC (rev 7160) +++ trunk/jython/src/org/python/util/jython.java 2010-10-19 03:02:51 UTC (rev 7161) @@ -157,7 +157,7 @@ PySystemState systemState = Py.getSystemState(); // Decide if stdin is interactive - if (!opts.fixInteractive && opts.interactive) { + if (!opts.fixInteractive || opts.interactive) { opts.interactive = ((PyFile)Py.defaultSystemState.stdin).isatty(); if (!opts.interactive) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |