mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp init: warn for code/data if they don't exist
This commit is contained in:
committed by
Saugat Pachhai
parent
a466241552
commit
d668cbeb45
@@ -281,6 +281,13 @@ def init(
|
||||
f"'{value}' {reason}. "
|
||||
"Please retry with an existing parameters file."
|
||||
)
|
||||
elif key in ("code", "data"):
|
||||
if not os.path.exists(value):
|
||||
ui.error_write(
|
||||
f"[yellow]'{value}' does not exist in the workspace. "
|
||||
'"exp run" may fail.[/]',
|
||||
styled=True,
|
||||
)
|
||||
|
||||
if interactive:
|
||||
defaults = init_interactive(
|
||||
|
||||
Reference in New Issue
Block a user