From dd06800d7b6d3332bc547fd2a258dfc83e32b361 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Tue, 23 Mar 2021 21:38:04 +0800 Subject: [PATCH] otatool: Fix a crash when imported as external python lib Closes: https://github.com/espressif/esp-idf/issues/6733 --- components/app_update/otatool.py | 1 - 1 file changed, 1 deletion(-) diff --git a/components/app_update/otatool.py b/components/app_update/otatool.py index 0e9d40046a..7ed48d1108 100755 --- a/components/app_update/otatool.py +++ b/components/app_update/otatool.py @@ -102,7 +102,6 @@ class OtatoolTarget(): def switch_ota_partition(self, ota_id): self._check_otadata_partition() - sys.path.append(PARTTOOL_DIR) import gen_esp32part as gen def is_otadata_info_valid(status):