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
ue)
regkey.SetValue('', regkey.GetValue('') + ' %*')
John
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iain
Sent: Tuesday, June 12, 2007 10:18 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Command line
What I di
EPAD.EXE" D:\Dev\Gen\bin\Debug\x.txt
>
> Martin
>
> -Original Message-
> 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
f 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 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.Environme
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 asso
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 "C:\Progra