Logo Search packages:      
Sourcecode: distribute version File versions  Download package

def pkg_resources::file_ns_handler (   importer,
  path_item,
  packageName,
  module 
)

Compute an ns-package subpath for a filesystem or zipfile importer

Definition at line 1799 of file pkg_resources.py.

01799                                                              :
    """Compute an ns-package subpath for a filesystem or zipfile importer"""

    subpath = os.path.join(path_item, packageName.split('.')[-1])
    normalized = _normalize_cached(subpath)
    for item in module.__path__:
        if _normalize_cached(item)==normalized:
            break
    else:
        # Only return the path if it's not already there
        return subpath

register_namespace_handler(ImpWrapper,file_ns_handler)
register_namespace_handler(zipimport.zipimporter,file_ns_handler)


def null_ns_handler(importer, path_item, packageName, module):


Generated by  Doxygen 1.6.0   Back to index