From 9955c9b9f69eb0683e2b095c755d0042eac731e2 Mon Sep 17 00:00:00 2001 From: Qing Date: Mon, 21 Nov 2022 11:56:34 +0800 Subject: [PATCH] update tasks.py --- scripts/user_scripts/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/user_scripts/tasks.py b/scripts/user_scripts/tasks.py index 44baf42..d58bb2c 100644 --- a/scripts/user_scripts/tasks.py +++ b/scripts/user_scripts/tasks.py @@ -99,13 +99,13 @@ def config(c, disable_device_choice=False): log.info(f"Save config to {CONFIG_PATH}") with open(CONFIG_PATH, "w", encoding="utf-8") as f: json.dump(configs, f, indent=2, ensure_ascii=False) - log.info(f"Config finish, you can close this window.") + Confirm.ask("Config finish, you can close this window") @task(pre=[info]) def start(c): if not os.path.exists(CONFIG_PATH): - log.info("Config file not exists, please run config.sh first") + Confirm.ask("Config file not exists, please run config scritp first") exit() log.info(f"Load config from {CONFIG_PATH}")