Skip to content

Add an importlib.resources-based ResourceProtocol #451

@corranwebster

Description

@corranwebster

Since pkg_resources is deprecated, the envisage.resources system should probably grow an importlib.resources-based equivalent.

The actual code to do this is straightforward.

Possibilities:

  • re-write the current PackageResourceProtocol to use importlib.resources (or importlib_resources as needed)
  • add a new ImportlibResourcesProtocol and allow the two to live side-by-side
  • get rid of ResourceManager completely (it is currently only used by the envisage core to access preferences)
  • something else (eg. merging the Envisage resource manager and the Pyface resource manager somehow)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions