SF.net SVN: jython:[7161] trunk/jython/src/org/python/util/jython.java
[email protected] Tue, 19 Oct 2010 03:02:51 +0000
| Newsgroups | gmane.comp.lang.jython.cvs |
|---|---|
| Message-ID | <[email protected]> |
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.
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev