This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: No command line args when script run without python.exe
Type: Stage:
Components: Windows Versions: Python 2.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: facundobatista, quiver, warkid
Priority: normal Keywords:

Created on 2004-09-16 08:07 by warkid, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg22457 - (view) Author: Kerim Borchaev (warkid) Date: 2004-09-16 08:07
In "FolderOptions/File types" for "py" files in 
action "open" "Application used to perform action" 
reads: "C:\Python24\python.exe" "%1"

This results in such behaviour:

D:\temp>copy con
import sys
print sys.version
print sys.argv[1]
        1 file(s) copied.

D:\temp>python.exe hello
2.4a3 (#56, Sep  2 2004, 20:50:21) [MSC v.1310 32 bit 

D:\temp> hello
2.4a3 (#56, Sep  2 2004, 20:50:21) [MSC v.1310 32 bit 
Traceback (most recent call last):
  File "D:\temp\", line 3, in ?
    print sys.argv[1]
IndexError: list index out of range

Python2.3 had this string for  "Application 
used...": "C:\Python24\python.exe" "%1" %*

msg22458 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2004-09-16 08:47
Logged In: YES 

This is a duplicate of bug #1022010

Try a new installer from

P.S. Is the latest MSI installer uploaded to
msg22459 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2004-10-21 03:02
Logged In: YES 

As is well pointed by quiver, this issue was fixed through
the bug #1022010.

Furthermore, I checked in my system (win2k sp4, Py2.4b1) and
is working correctly (changed the file association,
including now the %*).

.    Facundo
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 40918
2004-09-16 08:07:53warkidcreate