| Line # | Kind | Name | Docs |
|---|---|---|---|
| 62 | Function | is_development_egg | Check if the distribution is a development egg. |
| 75 | Function | get_plugin_toplevel_directory | Get the top level directory of a plugin distribution. |
| 103 | Class | InvalidComponentPath | Undocumented |
| 110 | Class | ComponentNotFound | Undocumented |
| 117 | Class | PluginNotFound | Undocumented |
| 120 | Class | PluginAlreadyEnabled | Undocumented |
| 123 | Class | PluginAlreadyDisabled | Undocumented |
| 126 | Class | DeserializationError | Undocumented |
| 129 | Class | PluginStatusMessage | A plugin has been enabled or disabled. |
| 147 | Class | PluginRegistry | The plugin registry handles plugins in Elisa as long as it is running. |
Development eggs store egg-info and python code in the same toplevel directory.
| Parameters | dist | plugin distribution
(type: Distribution
) |
Get the top level directory of a plugin distribution.
Regular eggs and development eggs store files in different locations. Use this function to access the top level directory of a plugin eg:
toplevel_directory = get_plugin_toplevel_directory(dist)
sub_directory = '%s/%s' % (toplevel_directory, 'sub')
requirement = pkg_resources.Requirement.parse(dist.project_name)
if pkg_resources.resource_isdir(requirement, sub_directory):
real_sub_path = pkg_resources.resource_filename(requirement,
sub_directory)
| Parameters | dist | plugin distribution
(type: Distribution
) |