Skip to content

Commit

Permalink
modernize importlib usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Aug 19, 2024
1 parent 679355e commit 5936eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anglerfish/demux/adaptor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import importlib
import importlib.resources as resources
import os
import re

Expand Down Expand Up @@ -247,7 +247,7 @@ def load_adaptors(raw: bool = False) -> list[Adaptor] | dict:
"""

# Load adaptors from config file
adaptors_config_path = importlib.resources.files("anglerfish.config").joinpath(
adaptors_config_path = resources.files("anglerfish.config").joinpath(
"adaptors.yaml"
)
assert isinstance(adaptors_config_path, os.PathLike)
Expand Down

0 comments on commit 5936eda

Please sign in to comment.