diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-07-08 02:42:44 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-07-08 02:42:44 +0200 |
commit | bb6714e9d7468465f23bf0e163d06517de397dbe (patch) | |
tree | aaabb03f1e7f8f41259815e5f03fcca14ef124f2 /doc/administration | |
parent | 210650683ccbfa35da293cd1b43057a780349d91 (diff) | |
download | fietsboek-bb6714e9d7468465f23bf0e163d06517de397dbe.tar.gz fietsboek-bb6714e9d7468465f23bf0e163d06517de397dbe.tar.bz2 fietsboek-bb6714e9d7468465f23bf0e163d06517de397dbe.zip |
better loading in util.read_localized_resource
The other code kinda assumed that we can turn the resource path into a
package by replacing the slashes (path separators) with dots. That
turned out to not really work in the end, especially if the resource
subfolders don't have a __init__.py in there.
This uses the .files() API (available in Python 3.9 and backported in
importlib_resources) to better handle folders in the resources.
Diffstat (limited to 'doc/administration')
0 files changed, 0 insertions, 0 deletions