[IronPython] Hosting and globals
Curt Hagenlocher
curt at hagenlocher.org
Tue Jan 8 08:17:32 PST 2008
On Jan 8, 2008 6:58 AM, Slide <slide.o.mix at gmail.com> wrote:
> I am trying to update my application to use the Hosting APIs from
> alpha 7, one thing that I can't seem to figure out is how to access
> "globals" to add stuff from my application to be used by the script.
What kind of reference do you have to the script from the hosting
code? If you've got a ScriptScope for the module, you can just say
PythonEngine.CurrentEngine.SetVariable(module, "varName", varValue)
where module is the ScriptScope.
--
Curt Hagenlocher
curt at hagenlocher.org
More information about the Users
mailing list