Module ihooks :: Class ModuleLoader
[hide private]
[frames] | no frames]

_ClassType ModuleLoader

     _Verbose --+    
                |    
BasicModuleLoader --+
                    |
                   ModuleLoader
Known Subclasses:

Default module loader; uses file system hooks.

By defining suitable hooks, you might be able to load modules from other sources than the file system, e.g. from compressed or encrypted files, tar files or (if you're brave!) URLs.

Instance Methods [hide private]
 
__init__(self, hooks=None, verbose=0)
 
default_path(self)
 
modules_dict(self)
 
get_hooks(self)
 
set_hooks(self, hooks)
 
find_builtin_module(self, name)
 
find_module_in_dir(self, name, dir, allow_packages=1)
 
load_module(self, name, stuff)

Inherited from BasicModuleLoader: find_module

Inherited from _Verbose: get_verbose, message, note, set_verbose

Method Details [hide private]

__init__(self, hooks=None, verbose=0)
(Constructor)

 
Overrides: _Verbose.__init__

default_path(self)

 
Overrides: BasicModuleLoader.default_path

find_builtin_module(self, name)

 
Overrides: BasicModuleLoader.find_builtin_module

find_module_in_dir(self, name, dir, allow_packages=1)

 
Overrides: BasicModuleLoader.find_module_in_dir

load_module(self, name, stuff)

 
Overrides: BasicModuleLoader.load_module