[IronPython] Custom module storage.

Michael Foord fuzzyman at voidspace.org.uk
Sun Jan 10 22:15:10 CET 2010


On 10/01/2010 21:07, Suhotyuk Pavel wrote:
> Hello.
>
> I have sql database with sources of python packages and modules. How I 
> can run IronPython with custom module storage?
> May I build custom module loader with IronPython.Modules.PythonImport 
> or DLR and IronPython have some ways for this?
>

You may want to look at writing a PEP 302 importer - this can be done in 
pure Python.

     http://www.python.org/dev/peps/pep-0302/

Alternatively the ihooks module is another way of writing a custom importer.

Michael

> Thanks.
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog





More information about the Ironpython-users mailing list