Skip to content

Commit

Permalink
Merge pull request #247 from savente93/fix-path-deprecation-warning
Browse files Browse the repository at this point in the history
fix path deprecation warning
  • Loading branch information
Huite authored Jun 18, 2024
2 parents f7f1ab4 + d5064ff commit e1beb17
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 e1beb17

Please sign in to comment.