[IronPython] Command line

Iain iain at onesquared.net
Tue Jun 12 21:17:43 PDT 2007


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.


More information about the users mailing list