Re: import hook, overwrite import?

2005-01-27 Thread Steve Holden
Kartic wrote: Hi Torsten, If you want to use other methods to import (other than good ole file system), yes, you can create an importer class and register it as an importer module, that import will use to search and import. For example, it is possible to use zip imports (this functionality is alrea

Re: import hook, overwrite import?

2005-01-26 Thread Kartic
Hi Torsten, If you want to use other methods to import (other than good ole file system), yes, you can create an importer class and register it as an importer module, that import will use to search and import. For example, it is possible to use zip imports (this functionality is already builtin)

import hook, overwrite import?

2005-01-25 Thread Torsten Mohr
Hi, is there some description available to overwrite the import hook? By googling i found out so far that i need to overwrite __builtins__.__import__ with something else. Can i also do this with a C function that is provided when using an embedded python interpreter? So my own C program provide