Detecting -i in a script

Marek Szuba marecki at fake.address
Mon Apr 13 21:41:44 CEST 2009


On 2009-04-13, Chris Rebert <clp2 at rebertia.com> 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



More information about the Python-list mailing list