aboutsummaryrefslogtreecommitdiff
path: root/setup.py
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 /setup.py
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 'setup.py')
-rw-r--r--setup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index d6267a6..bcb2ab1 100644
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,7 @@ requires = [
'SQLAlchemy',
'transaction',
'zope.sqlalchemy',
+ 'importlib_resources',
'Babel',
'cryptography',
'gpxpy',