Package lemon :: Package external :: Package Cheetah :: Module ImportManager
[show private | hide private]
[frames | no frames]

Module lemon.external.Cheetah.ImportManager

Provides an emulator/replacement for Python's standard import system.

This is a hacked/documented version of Gordon McMillan's iu.py. I have:

  - made it a little less terse

  - added docstrings and explanatations

  - standardized the variable naming scheme

  - reorganized the code layout to enhance readability

Meta-Data
================================================================================
Author: Tavis Rudd <tavis@damnsimple.com>  based on Gordon McMillan's iu.py
License: This software is released for unlimited distribution under the
         terms of the Python license.
Version: $Revision: 1.1 $
Start Date: 2001/03/30
Last Revision Date: $Date: 2003/08/12 09:17:11 $

Classes
BuiltinImportDirector Directs imports of builtin modules...
DirOwner  
FrozenImportDirector Directs imports of frozen modules...
ImportDirector ImportDirectors live on the metapath There's one for builtins, one for frozen modules, and one for sys.path Windows gets one for modules gotten from the Registry Mac would have them for PY_RESOURCE modules etc.
ImportManager  
Owner An Owner does imports from a particular piece of turf That is, there's an Owner for each thing on sys.path There are owners for directories and .pyz files.
PathImportDirector Directs imports of modules stored on the filesystem.
RegistryImportDirector Directs imports of modules stored in the Windows Registry...

Function Summary
  _os_path_dirname(a, sep)
  _os_path_join(a, b, sep)
  getDescr(fnm)
  getPathExt(fnm)
  nameSplit(s)
  packageName(s)
  pathIsDir(pathname)
Local replacement for os.path.isdir().

Variable Summary
str __author__ = 'Tavis Rudd <tavis@damnsimple.com>'
str __revision__ = '1.1'
int UNTRIED = -1                                                                    

Function Details

pathIsDir(pathname)

Local replacement for os.path.isdir().

Variable Details

__author__

Type:
str
Value:
'Tavis Rudd <tavis@damnsimple.com>'                                    

__revision__

Type:
str
Value:
'1.1'                                                                  

UNTRIED

Type:
int
Value:
-1                                                                    

Generated by Epydoc 2.0 on Mon Nov 10 15:08:26 2003 http://epydoc.sf.net