[IronPython] Another deployment question...

Bob Rosembob brosembob at yahoo.com
Mon Jun 30 22:15:03 CEST 2008


Hi there,
I have a couple of questions.
 
1. If I'm using IronPython to call Python function from my C# app. What do I need to deploy my project?
 
I added references to my project to the following dlls:
IronPython.dlll
IronMath.dll

 
In the code I'm using the following:
using IronPython.Runtime;
using IronPython.Runtime.Types;
using IronPython.Runtime.Operations;
usingIronPython.Hosting;
using IronPython.Modules;

 
The script imports:
string
sys
os
math
and other
 
2. In order to run the script I had to copy imported libraries into directory where my exe is.  For some reason if I copy the compiled version of the files (e.g. string.pyc, sys.pyc, etc.) my script won't find them. It can see only none-compiled files. Why is it? What should I do to be able run all script files (py) as compiled (pyc)?
 
Please advise.
 
Thanks,
Bob


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080630/7cf9fb52/attachment.html>


More information about the Ironpython-users mailing list