[IronPython] Get the line number for a PythonException
Stanislas Pinte
stan at phidani.be
Tue Dec 13 16:19:44 CET 2005
Hello,
I am using IronPython as embedded scripting engine.
I am invoking python functions defined in a script like that:
engine.AddToPath(Path.GetDirectoryName(scriptPath));
engine.Import(moduleName);
f = engine.Evaluate(moduleName + "." + functionName) as Function;
..
later:
..
f.Call(...)
--> when I get a PythonException there, I only get the raw message like:
"'bool' object has no attribute 'test'"
Is there a way to know the line number of the error?
Thanks a lot,
Stan.
More information about the Ironpython-users
mailing list