Skip to content

Commit

Permalink
ref: fix windows tests (pathlib issues)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 25, 2022
1 parent 95fd1b8 commit 7808a63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shapeout2/meta_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def cached_wrapper(path, path_stats, *args, **kwargs):

@functools.wraps(func)
def wrapper(path, *args, **kwargs):
full_path = pathlib.Path(path).resolve()
if full_path.exists():
local_path = pathlib.Path(path)
if local_path.exists():
full_path = local_path.resolve()
path_stat = full_path.stat()
return cached_wrapper(
path=full_path,
Expand Down

0 comments on commit 7808a63

Please sign in to comment.