diff --git a/service/jargon/resources.py b/service/jargon/resources.py index 5bdf4f798..0d3ecf871 100644 --- a/service/jargon/resources.py +++ b/service/jargon/resources.py @@ -17,8 +17,8 @@ # along with pyfa. If not, see . # ============================================================================= -from importlib.resources import files +import importlib.resources -DEFAULT_DATA = files(__name__).joinpath('defaults.yaml').open('r', encoding='utf8').read() -DEFAULT_HEADER = files(__name__).joinpath('header.yaml').open('r', encoding='utf8').read() +DEFAULT_DATA = importlib.resources.open_text(__name__, 'defaults.yaml').read() +DEFAULT_HEADER = importlib.resources.open_text(__name__, 'header.yaml').read()