[Ironpython-users] embedding and compiling

Peter Schwalm ps at peter-schwalm.de
Fri Jan 4 16:04:22 CET 2013


Hello,
I want to use the embedding feature of ipy for implementing an ipy 
program as a windows service. I hope I can benefit from the good support 
of Visual Studio and C# for the installation of services (installUtil.exe).

My question is: is it possible to use pyc-compiled programs with the 
embedding features?

My plan is to code like this

     using IronPython.Hosting;
     using IronPython.Runtime;
     using Microsoft.Scripting.Hosting;
     ...

     ipyRt = Python.CreateRuntime()
     dynamic testPy = ipyRt.UseFile("program....py");
     ...
     testPy.function()

Is it possible to use compiled modules instead of "program....py" with 
.UseFile?

Thanks in advance
Peter



More information about the Ironpython-users mailing list