Fix incorrect input for path and entry

Change-Id: Idff184d8fb8b328f42fc4f96cdde2663f6581864
This commit is contained in:
Zhou Xuezan
2022-09-14 16:26:55 +08:00
committed by Jia Jia
parent 21554ab3fc
commit d0d49f5b42

View File

@@ -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()