What happens to -i ?

Lee Harr missive at frontiernet.net
Sun Feb 9 17:42:13 CET 2003


I am trying to determine if a script has been run with
the -i flag.


11:38 >cat > dashi.py
# dashi.py
import sys
print sys.argv
#
11:38 >python dashi.py 
['dashi.py']
11:38 >python -i dashi.py
['dashi.py']
>>> 


So, 2 questions:

What happens to -i ?
How can I tell if -i was specified?








More information about the Python-list mailing list