[IronPython] PythonEngine.RunFile

Martin Maly Martin.Maly at microsoft.com
Fri Aug 11 00:06:16 CEST 2006

You can try the PythonEngine.CreateOptimizedModule which you can also pass a name your module should get. Let us know if that doesn't meet your needs.


From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Tim Riley
Sent: Thursday, August 10, 2006 2:17 PM
To: Discussion of IronPython
Subject: Re: [IronPython] PythonEngine.RunFile

I've tested that and I don't think it works with:

if __name___ == "__main__":

in the python script.

Tim Riley
On 8/10/06, Martin Maly <Martin.Maly at microsoft.com<mailto:Martin.Maly at microsoft.com>> wrote:

 Think PythonEngine.ExecuteFile may work for you.

From: users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com> [mailto: users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com>] On Behalf Of Tim Riley
Sent: Thursday, August 10, 2006 1:01 PM
To: Discussion of IronPython
Subject: [IronPython] PythonEngine.RunFile

In IP version 0.9 there was a PythonEngine.RunFile() method, this seems to be gone in 1.0.6. Is there a replacement?

users mailing list
users at lists.ironpython.com<mailto:users at lists.ironpython.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060810/5377ea9b/attachment.html>

More information about the Ironpython-users mailing list