Luke101
Luke101

Reputation: 65238

How to run IronPython as a script

I would like to run ironpython as a script instead of compiling the ironpython code into an executable. is there a way to run ironpython as a script?

Upvotes: 4

Views: 7754

Answers (2)

Arindam Roychowdhury
Arindam Roychowdhury

Reputation: 6493

For avoiding the full path, Add IronPython folder path in you environment variable PATH. Then launch cmd and type

ipy

enter image description here

Upvotes: 0

Larry Lustig
Larry Lustig

Reputation: 50970

Yes, the interpreter is installed in the IronPython sub-directory off of the Program Files folder. The name is ipy.exe. So, if your script is myscript.py:

  C:> c:\Program Files (x86)\IronPython 2.7.1\ipy.exe" myscript.py

Upvotes: 5

Related Questions