John Messerly wrote:
The reason arguments aren't getting passed is because file associations by
default only pass the file name, not any additional arguments. You can see
the registry entry for the file association by running the following IPy code:
# Reads the registry key containing the
If I associate ipy.exe with *.py files then run the IronPython files
directory I am not seeing any command line argument that I try to pass
in to the script.
I have a file called cmdline_test.py with the following two lines,
import System
print System.Environment.CommandLine
If I run
Looks like I've worked it out for myself. It looks like that is the
behavior you will get if you use the 'Always open with this
applications' option when you use 'Open With..'
I fixed it by undoing that change and changing what was run for all
Python.File types.
Iain.
Iain wrote:
If I
] Command line
If I associate ipy.exe with *.py files then run the IronPython files
directory I am not seeing any command line argument that I try to pass
in to the script.
I have a file called cmdline_test.py with the following two lines,
import System
print System.Environment.CommandLine
If I run
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iain
Sent: Tuesday, June 12, 2007 9:18 PM
To: Discussion of IronPython
Subject: [IronPython] Command line
If I associate ipy.exe with *.py files then run the IronPython files
directory I am not seeing any command line
PROTECTED] On Behalf Of Iain
Sent: Tuesday, June 12, 2007 10:18 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Command line
What I didn't make clear was that the extra option (in this case the
word test) was missing when using the file association.
Iain.
Martin Maly wrote:
That seems correct