Use Script everywhere where cwd_at is used, otherwise Python 2.7 is annoying

This commit is contained in:
Dave Halter
2017-12-30 03:55:23 +01:00
parent 0ed9e1c249
commit a14f665b5a
6 changed files with 9 additions and 9 deletions

View File

@@ -30,9 +30,9 @@ def cwd_at(path):
"""
def decorator(func):
@functools.wraps(func)
def wrapper(*args, **kwds):
def wrapper(Script, **kwds):
with set_cwd(path):
return func(*args, **kwds)
return func(Script, **kwds)
return wrapper
return decorator