envisage.resource.i_resource_manager module

The resource manager interface.

class envisage.resource.i_resource_manager.IResourceManager(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: Interface

The resource manager interface.

file(url)[source]

Return a readable file-like object for the specified url.

Raise a ‘NoSuchResourceError’ if the resource does not exist.

e.g.:

manager.file('pkgfile://acme.ui.workbench/preferences.ini')