mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-19 22:54:21 +01:00
🏃 fix: run path
This commit is contained in:
@@ -35,9 +35,6 @@ def path_param(func):
|
|||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
path = os.path.expanduser(kwargs['path'])
|
path = os.path.expanduser(kwargs['path'])
|
||||||
path = os.path.abspath(path)
|
path = os.path.abspath(path)
|
||||||
if os.path.exists(path) and os.listdir(path):
|
|
||||||
click.echo(f"Error: The path {path} you provided via --path is not empty. Please choose a directory that does not exist or is empty.")
|
|
||||||
exit(1)
|
|
||||||
kwargs['path'] = path
|
kwargs['path'] = path
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user