aboutsummaryrefslogtreecommitdiff
path: root/LICENSE.txt
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-08 02:42:44 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-08 02:42:44 +0200
commitbb6714e9d7468465f23bf0e163d06517de397dbe (patch)
treeaaabb03f1e7f8f41259815e5f03fcca14ef124f2 /LICENSE.txt
parent210650683ccbfa35da293cd1b43057a780349d91 (diff)
downloadfietsboek-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 'LICENSE.txt')
0 files changed, 0 insertions, 0 deletions