[ python-Bugs-1029047 ] No command line args when script run
without python.exe
SourceForge.net
noreply at sourceforge.net
Thu Sep 16 10:07:53 CEST 2004
Bugs item #1029047, was opened at 2004-09-16 12:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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" %*
----------------------------------------------------------------------
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