Skip to content

Commit fa5740c

Browse files
committed
Update deprecated importblib function
1 parent 5b3d188 commit fa5740c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vqueue/_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
except ModuleNotFoundError:
66
import tomli as tomllib
77

8-
_cfg = tomllib.loads(resources.read_text("vqueue", "config.toml"))
8+
with (resources.files("vqueue").joinpath("config.toml")).open("r") as config_file:
9+
_cfg = tomllib.loads(config_file.read())
910

1011
API_BASE_PATH = _cfg["api"]["base_path"]

0 commit comments

Comments
 (0)