I am using IronPython for scripting an application. To make writing scripts
easier I want to place several objects in the script name space so they can
be easily used. I got stuck with how to place a reference to a static
object, App, in the name space. This is probably a simple operation and
We specifically allow from staticclass import * because we treat a static class
as if it were like a module. So you could simply run that line of code in the
scope on behalf of the user. Otherwise you'll need to re-create getting the
dynamic members and then setting them in the scope. Then
To pre-load various module imports into our execution environment, I am doing
something like this at application startup (we have a number of modules that we
pre-load):
dynamic builtin = Engine.GetBuiltinModule();
dynamic import = builtin.__import__;
var DefaultImports = new
Can anyone shed any light on this? I spent several hours searching the
Web for some hints with no luck.
Using VS2010, I built a little IronPython program and added a Windows
form to it as a separate project.
It all works fine when invoked as ipyw.exe -D Program.py.
(IronPython 2.6.2 with .net
On 6/13/2011 7:13 PM, Brian Wilson wrote:
Can anyone shed any light on this? I spent several hours searching the
Web for some hints with no luck.
Using VS2010, I built a little IronPython program and added a Windows
form to it as a separate project.
It all works fine when invoked as ipyw.exe -D