[IronPython] Embedded IronPython 2.6 Module Name

Jonathan Howard jhoward at drawloop.com
Thu Nov 5 19:38:51 CET 2009


Looking further into this, it appears that __name__ is always set to
<module>. This is the behavior while trying to just use:

Dictionary<string, object> options = new Dictionary<string, object>();
ScriptEngine se = Python.CreateEngine();
Console.WriteLine(se.Execute<string>("__name__"));

~Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20091105/334c91de/attachment.html>


More information about the Ironpython-users mailing list