mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Replace deprecated importlib.resources.path()
This commit is contained in:
parent
284969e7bb
commit
f390b7da33
1 changed files with 2 additions and 2 deletions
|
|
@ -385,8 +385,8 @@ def get_user_config():
|
|||
)
|
||||
if not os.path.exists(userconf):
|
||||
# initial config (with all options explained)
|
||||
with importlib.resources.path(
|
||||
f"{PACKAGE_NAME}.data", "linkcheckerrc") as initialconf:
|
||||
with importlib.resources.as_file(importlib.resources.files(
|
||||
f"{PACKAGE_NAME}.data").joinpath("linkcheckerrc")) as initialconf:
|
||||
# copy the initial configuration to the user configuration
|
||||
try:
|
||||
make_userdir(userconf)
|
||||
|
|
|
|||
Loading…
Reference in a new issue