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.

classification
Title: No command line args when script run without python.exe
Type: Stage:
Components: Windows Versions: Python 2.4
process
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 test.py
import sys
print sys.version
print sys.argv[1]
^Z
        1 file(s) copied.

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

D:\temp>test.py hello
2.4a3 (#56, Sep  2 2004, 20:50:21) [MSC v.1310 32 bit 
(Intel)]
Traceback (most recent call last):
  File "D:\temp\test.py", 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 
user_id=671362

This is a duplicate of bug #1022010
  http://www.python.org/sf/1022010

Try a new installer from
 http://www.dcl.hpi.uni-potsdam.de/home/loewis/python-
2.4a3.3.msi

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

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
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 40918
2004-09-16 08:07:53warkidcreate