mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Use Script everywhere where cwd_at is used, otherwise Python 2.7 is annoying
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user