[IronPython] Importing embedded .py files

Jonathan Jacobs korpse-ironpython at kaydash.za.net
Tue Jul 4 19:21:46 CEST 2006


Nathan R. Ernst wrote:
> Out of curiosity, is there any sort of hook into the engine that would allow
> you search for a module on your own?  e.g. a search of sys.path did not find

I'm not sure how well this is going to work with IronPython, but in CPython 
you're advised to use ihooks (http://pydoc.org/2.4.1/ihooks.html), which is a 
pure Python module in the stdlib, to write your own import hooks.

-- 
Jonathan




More information about the Ironpython-users mailing list