Re: Detecting -i in a script

2009-04-13 Thread Marek Szuba
On 2009-04-13, Chris Rebert wrote: > The sys.flags.interactive bool. > > Details: http://docs.python.org/library/sys.html#sys.flags Hmm, "New in version 2.6"... Are you aware of any way of extracting this information in older versions of Python? My code needs to be 2.3-compatible. -- MS -- http

Detecting -i in a script

2009-04-13 Thread Marek Szuba
Hello there, Is there any way of detecting in a script whether the interpreter session running it has been launched with the -i option? My Google fu has failed me on this subject... Thanks in advance. -- MS -- http://mail.python.org/mailman/listinfo/python-list