[IronPython] PythonEngine bug
Stanislas Pinte
stan at phidani.be
Fri Dec 2 14:53:01 CET 2005
hello,
I am having problems importing modules in the PythonEngine:
PythonEngine engine = new PythonEngine();
engine.AddToPath(Environment.CurrentDirectory);
engine.Import("hop");
Function inc = engine.Evaluate("hop.increment") as Function;
whith hop.py being in the current directory, I get:
1) TraceAnalyzer.test.ScriptingTests.TestPythonGlobalVariableUsageAcrossFunctionCalls :
IronPython.Objects.PythonAttributeError : 'NoneType' object has no attribute 'increment'
Any idea?
Thanks a lot,
Stan.
More information about the Ironpython-users
mailing list