[IronPython] Command line

Iain iain at onesquared.net
Wed Jun 13 06:57:09 CEST 2007


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 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:\Program Files\IronPython\ipy.exe" cmdline_test.py test I 
> will get
> "C:\Program Files\IronPython\ipy.exe" cmdline_test.py test
>
> If I run cmdline_test.py test I then get
> "C:\Program Files\IronPython\ipy.exe"  "C:\Scripts\cmdline_test.py"
>
> Is this the expected behavior?
>
> Thanks
>
> Iain.
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   




More information about the Ironpython-users mailing list