I am loading an IronPython script from a database and executing it. This works fine for simple scripts, but imports are a problem. How can I intercept these import calls a
You need to implement import hooks. Here's an SO question with pointers: PEP 302 Example: New Import Hooks