Skip to content

Commit 00d06cf

Browse files
authored
check and remove tl-install piopm always
1 parent 78e425d commit 00d06cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

platform.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,11 @@ def _configure_installer(self) -> None:
594594
logger.error("Error during tool-esp_install version check / installation")
595595
return
596596

597+
# Remove pio install marker to avoid issues when switching versions
598+
old_tl_piopm_path = os.path.join(self.packages_dir, "tl-install", ".piopm")
599+
if os.path.exists(old_tl_piopm_path):
600+
safe_remove_file(old_tl_piopm_path)
601+
597602
# Check if idf_tools.py is available
598603
installer_path = os.path.join(
599604
self.packages_dir, tl_install_name, "tools", "idf_tools.py"

0 commit comments

Comments
 (0)