otatool: Fix a crash when imported as external python lib

Closes: https://github.com/espressif/esp-idf/issues/6733
This commit is contained in:
KonstantinKondrashov
2021-03-23 21:38:04 +08:00
committed by bot
parent b962a91ad4
commit ad073b5a1d

View File

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