update tasks.py
This commit is contained in:
parent
c02d918368
commit
9955c9b9f6
@ -99,13 +99,13 @@ def config(c, disable_device_choice=False):
|
|||||||
log.info(f"Save config to {CONFIG_PATH}")
|
log.info(f"Save config to {CONFIG_PATH}")
|
||||||
with open(CONFIG_PATH, "w", encoding="utf-8") as f:
|
with open(CONFIG_PATH, "w", encoding="utf-8") as f:
|
||||||
json.dump(configs, f, indent=2, ensure_ascii=False)
|
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])
|
@task(pre=[info])
|
||||||
def start(c):
|
def start(c):
|
||||||
if not os.path.exists(CONFIG_PATH):
|
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()
|
exit()
|
||||||
|
|
||||||
log.info(f"Load config from {CONFIG_PATH}")
|
log.info(f"Load config from {CONFIG_PATH}")
|
||||||
|
Loading…
Reference in New Issue
Block a user