On Mon, Apr 13, 2009 at 12:09 PM, Marek Szuba <mare...@fake.address> wrote: > 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.
The sys.flags.interactive bool. Details: http://docs.python.org/library/sys.html#sys.flags Cheers, Chris -- I have a blog: http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list