Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Feb 6, 2022
1 parent f6ecfdb commit bfd502a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen2/utils/chdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def decorator(func: Callable):
"""Change the current working path."""
@wraps(func)
def wrapper(self, ip : OPIO):
with Path(ip[path_key]):
with set_directory(Path(ip[path_key])):
return func(self, ip)
return wrapper
return decorator

0 comments on commit bfd502a

Please sign in to comment.