From fc72ff4cd15d6d77f4a46aa6eb7d5feeddfd7777 Mon Sep 17 00:00:00 2001 From: zhangtianli2006 Date: Wed, 25 Aug 2021 13:45:33 +0800 Subject: [PATCH] [feature] check if vtest.conf exists Signed-off-by: zhangtianli2006 --- vcheck.py | 1 + vmake.py | 1 + 2 files changed, 2 insertions(+) diff --git a/vcheck.py b/vcheck.py index 6582681..90398aa 100644 --- a/vcheck.py +++ b/vcheck.py @@ -62,6 +62,7 @@ def check_file(file_path: str, err_msg: str): task_cnt = [] +check_file("vtest.conf", "[ERR] Configure file 'vtest.conf' not found.") vconf = open("vtest.conf", "r") name, sub_tasks = vconf.readline().split() diff --git a/vmake.py b/vmake.py index 6027267..d165b14 100644 --- a/vmake.py +++ b/vmake.py @@ -26,6 +26,7 @@ def check_file(file_path: str, err_msg: str): task_cnt = [] +check_file("vtest.conf", "[ERR] Configure file 'vtest.conf' not found.") vconf = open("vtest.conf", "r") name, sub_tasks = vconf.readline().split()