[ python-Bugs-1029047 ] No command line args when script run without python.exe

SourceForge.net noreply at sourceforge.net
Thu Oct 21 05:02:53 CEST 2004


Bugs item #1029047, was opened at 2004-09-16 05:07
Message generated for change (Comment added) made by facundobatista
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1029047&group_id=5470

Category: Windows
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Kerim Borchaev (warkid)
Assigned to: Nobody/Anonymous (nobody)
Summary: No command line args when script run without python.exe

Initial Comment:
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" %*



----------------------------------------------------------------------

>Comment By: Facundo Batista (facundobatista)
Date: 2004-10-21 00:02

Message:
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

----------------------------------------------------------------------

Comment By: George Yoshida (quiver)
Date: 2004-09-16 05:47

Message:
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?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1029047&group_id=5470


More information about the Python-bugs-list mailing list