Merge "Fix incorrect input for path and entry" am: e98964339e am: 6fcd2b4325

Original change: https://android-review.googlesource.com/c/platform/build/+/2215166

Change-Id: I6d752e291ca12c3eedfade5e536bac0cdd9777b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/tools/releasetools/ota_utils.py b/tools/releasetools/ota_utils.py
index e1529c7..06349a2 100644
--- a/tools/releasetools/ota_utils.py
+++ b/tools/releasetools/ota_utils.py
@@ -713,7 +713,7 @@
         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()