[IronPython] Dynamic compilation

Morgan Martinet ironpython at mmm-experts.com
Sat Aug 27 05:35:23 CEST 2005


Hi,

Today, I wanted to upgrade my current release of IronPython and I went into
my folder containing my scripts. Then I realized that there was a lot of
files like:
MyModule.py
MyModule.exe
MyModule__1.exe
MyModule__2.exe
MyModule__3.exe
MyModule__4.exe
...

Then I remembered that when I was trying IronPython, I had a Python editor
open to input the script that I executed in the IronPython console. But in
order to avoid relaunching the console, I was relying on the
reload(MyModule) Python function.
So, I assume that when you import a script it is compiled into an exe that
is loaded into the process and locked, preventing another compilation of the
same source.
I don't think this is acceptable and I guess that you could either use
shadow copy or load the exe into memory before trying to run it?

Bye,

Morgan






More information about the Ironpython-users mailing list