From b6d6d7d2e3955aaba8596d7ab25d940f1a548ad2 Mon Sep 17 00:00:00 2001 From: cuican Date: Fri, 15 Dec 2023 18:13:59 +0800 Subject: [PATCH] =?UTF-8?q?codecheck=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cuican --- tools/syscap_collector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/syscap_collector.py b/tools/syscap_collector.py index 8ddb630..0902dda 100644 --- a/tools/syscap_collector.py +++ b/tools/syscap_collector.py @@ -336,7 +336,6 @@ class LoadBuildConfig(object): bundle_part_obj = BundlePartObj(_build_file) _parts_config = bundle_part_obj.to_ohos_build() else: - _parts_config = read_build_file(_build_file) _subsystem_name = _parts_config.get('subsystem') if not is_thirdparty_subsystem and subsystem_name and _subsystem_name != subsystem_name: @@ -399,7 +398,7 @@ def get_parts_info(source_root_dir, subsystem_info, build_xts=False): def _read_json_file(input_file): if not os.path.exists(input_file): print("file '{}' doesn't exist.".format(input_file)) - return 0 + return {} try: with open(input_file, 'r') as input_f: data = json.load(input_f)