No, if you invoke Python with
-cto run commands from the command line, your
sys.argv[0]will be
-c:
C:Python27>python.exe -c "import sys; print sys.argv[0]"-c

No, if you invoke Python with
-cto run commands from the command line, your
sys.argv[0]will be
-c:
C:Python27>python.exe -c "import sys; print sys.argv[0]"-c