Detecting -i in a script

Marek Szuba marecki at fake.address
Mon Apr 13 15:09:39 EDT 2009


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



More information about the Python-list mailing list