NTD-Modelling-Consortium / ntd-model-sch

NTD SCH model
MIT License
0 stars 6 forks source link

Don't rely on `pkg_resources` module to find data files #49

Open tlestang opened 5 months ago

tlestang commented 5 months ago

Use of module pkg_resources to find pakcage data is deprecated. It's part of setuptools which, when switching to pyproject.toml (see #43) will not be installed at runtime anyway.

See https://setuptools.pypa.io/en/latest/pkg_resources.html

In our case, I think it's sufficient to define a global DATA_PATH variable that contains the path to the data/ directory.