We have recently switched over our python implementation from IronPython to the embedded Python installation. Previously we were using the solution provided on this forum for finding the line number by calling Engine.GetService on the IronPython engine.
This doesn’t seem to work the same when using the embedded python implementation and when an exception occurs in our code during execution of the python script in RunFunction.
Is there a different way required for the embedded python?
Apologies for the delay in response, it ended up being a python issue where the exception line number was being swallowed by the python. Was able to access it by unpacking the python exception frames and your solution.
Thanks