Skip to content

Use importlib-resources to find package resources

Adam Coldrick requested to merge sotk/bugs/importlib-resources into master

Before raising this MR, consider whether the following are required, and complete if so:

  • Unit tests
  • Metrics
  • Documentation update(s)

If not required, please explain in brief why not.

Description

Currently we use __file__ to find resources installed relative to the python package. This doesn't work in some cases, e.g. a zipped package. This MR updates things so that we use importlib instead.

Merge request reports

Loading