[Python-Dev] [pygtk] Application name is '-c'
Guido van Rossum
guido at python.org
Wed Oct 15 01:36:30 CEST 2008
On Tue, Oct 14, 2008 at 4:15 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Frédéric wrote:
>> In several places, instead of having my application name, I get '-c'.
> This could be a result of the app having got launched
> via 'python -c' somewhere along the way:
> % python -c 'import sys; print sys.argv'
> Not sure whether to regard this as a bug or not. It's
> not clear what the app name *should* be when you use
> -c. What do the python-dev folks think?
It is a feature. I chose to set it to '-c' because there is no other
appropriate string to use.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev