Skip to content

Commit

Permalink
update importlib in init
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Nov 25, 2024
1 parent 74271be commit 8a84dc5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pynwb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ def unload_type_config(**kwargs):
hdmf_unload_type_config(type_map=type_map)

def __get_resources() -> dict:
try:
from importlib.resources import files
except ImportError:
# TODO: Remove when python 3.9 becomes the new minimum
from importlib_resources import files
from importlib.resources import files

__location_of_this_file = files(__name__)
__core_ns_file_name = 'nwb.namespace.yaml'
Expand Down

0 comments on commit 8a84dc5

Please sign in to comment.