提交 07a79804 编写于 作者: F Félix Voituret

🐛 restore alternative import

上级 306bc28d
......@@ -3,11 +3,17 @@
""" Module that provides configuration loading function. """
import importlib.resources as loader
import json
from os.path import exists
from typing import Dict
try:
import importlib.resources as loader
except ImportError:
# Try backported to PY<37 `importlib_resources`.
# pyright: reportMissingImports=false
import importlib_resources as loader
from .. import SpleeterError, resources
__email__ = "spleeter@deezer.com"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册