From d0d49f5b42284efe52f9100dc6f0cb4c1d28b24b Mon Sep 17 00:00:00 2001 From: Zhou Xuezan Date: Wed, 14 Sep 2022 16:26:55 +0800 Subject: [PATCH] Fix incorrect input for path and entry Change-Id: Idff184d8fb8b328f42fc4f96cdde2663f6581864 --- tools/releasetools/ota_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releasetools/ota_utils.py b/tools/releasetools/ota_utils.py index e1529c74e4..06349a240b 100644 --- a/tools/releasetools/ota_utils.py +++ b/tools/releasetools/ota_utils.py @@ -713,7 +713,7 @@ def IsZucchiniCompatible(source_file: str, target_file: str): if entry in zfp.namelist(): return zfp.read(entry).decode() else: - entry_path = os.path.join(entry, path) + entry_path = os.path.join(path, entry) if os.path.exists(entry_path): with open(entry_path, "r") as fp: return fp.read()