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

def pkg_resources::get_distribution (   dist  ) 

Return a current distribution object for a Requirement or string

Definition at line 289 of file pkg_resources.py.

00289                           :
    """Return a current distribution object for a Requirement or string"""
    if isinstance(dist,basestring): dist = Requirement.parse(dist)
    if isinstance(dist,Requirement): dist = get_provider(dist)
    if not isinstance(dist,Distribution):
        raise TypeError("Expected string, Requirement, or Distribution", dist)
    return dist

def load_entry_point(dist, group, name):


Generated by  Doxygen 1.6.0   Back to index