From 0d0478093205b33d787253160a7d2638ad960e9f Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Wed, 26 Jun 2024 18:02:28 +0200 Subject: [PATCH] Fix PathConfig in cmd_payload --- mtkclient/Library/mtk_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtkclient/Library/mtk_main.py b/mtkclient/Library/mtk_main.py index bec6d06..d65f19e 100755 --- a/mtkclient/Library/mtk_main.py +++ b/mtkclient/Library/mtk_main.py @@ -678,9 +678,9 @@ class Main(metaclass=LogBase): plt = PLTools(mtk, self.__logger.level) if payloadfile is None: if mtk.config.chipconfig.loader is None: - payloadfile = os.path.join(mtk.PathConfig.get_payloads_path(), "generic_patcher_payload.bin") + payloadfile = os.path.join(mtk.pathconfig.get_payloads_path(), "generic_patcher_payload.bin") else: - payloadfile = os.path.join(mtk.PathConfig.get_payloads_path(), mtk.config.chipconfig.loader) + payloadfile = os.path.join(mtk.pathconfig.get_payloads_path(), mtk.config.chipconfig.loader) plt.runpayload(filename=payloadfile) if self.args.metamode: mtk.port.run_handshake()