How a script can know if it has been called with the -i command line option?
commander.coder at hotmail.com
commander.coder at hotmail.com
Thu Dec 21 14:22:47 EST 2006
More information about the Python-list mailing list
Thu Dec 21 14:22:47 EST 2006
- Previous message (by thread): How a script can know if it has been called with the -i command line option?
- Next message (by thread): How a script can know if it has been called with the -i command line option?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Michele Simionato wrote: > The subject says it all, I would like a script to act differently when > called as > $ python script.py and when called as $ python -i script.py. I looked > at the sys module > but I don't see a way to retrieve the command line flags, where should > I look? In the optparse module. Jim
- Previous message (by thread): How a script can know if it has been called with the -i command line option?
- Next message (by thread): How a script can know if it has been called with the -i command line option?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list