Skip to content

Commit

Permalink
fix: path() returns a context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
timmahrt committed Nov 4, 2023
1 parent b151301 commit fe131eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions praatio/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
scriptsPath = resources.files("praatio") / "praatScripts"
# Deprecated in python 3.11
else:
scriptsPath = resources.path(
"praatio",
"praatScripts",
)
with resources.path("praatio", "praatScripts") as path:
scriptsPath = path


def find(list, value, reverse) -> Optional[int]:
Expand Down

0 comments on commit fe131eb

Please sign in to comment.