We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5ab87 commit 87007afCopy full SHA for 87007af
service/jargon/resources.py
@@ -19,6 +19,7 @@
19
20
from importlib.resources import files
21
22
-DEFAULT_DATA = files(__name__).joinpath('defaults.yaml').open('r', encoding='utf8').read()
23
-DEFAULT_HEADER = files(__name__).joinpath('header.yaml').open('r', encoding='utf8').read()
+PACKAGE_NAME = __name__.rsplit(".", maxsplit=1)[0]
24
+DEFAULT_DATA = files(PACKAGE_NAME).joinpath('defaults.yaml').open('r', encoding='utf8').read()
25
+DEFAULT_HEADER = files(PACKAGE_NAME).joinpath('header.yaml').open('r', encoding='utf8').read()
0 commit comments