Skip to content

Commit

Permalink
fix path deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Jun 14, 2024
1 parent f7f1ab4 commit 4eac65a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xugrid/data/sample_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
version_dev="main",
env="XUGRID_DATA_DIR",
)
with importlib.resources.files("xugrid.data") as path:
REGISTRY.load_registry(path / "registry.txt")
REGISTRY.load_registry(importlib.resources.files("xugrid.data")/ "registry.txt")


def xoxo():
Expand Down

0 comments on commit 4eac65a

Please sign in to comment.