Skip to content

Commit 575ca3e

Browse files
authored
Deactivate tl-install AFTER it is installed
1 parent 2b71471 commit 575ca3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platform.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ def configure_default_packages(self, variables, targets):
7676
core_variant_build = (''.join(variables.get("build_flags", []))).replace("-D", " ")
7777
frameworks = variables.get("pioframework", [])
7878

79-
# Installer only needed for setup, deactivate
80-
self.packages["tl-install"]["optional"] = True
79+
# Installer only needed for setup, deactivate when installed
80+
if bool(os.path.exists(os.path.join(ProjectConfig.get_instance().get("platformio", "packages_dir"), "tl-install", "tools", "idf_tools.py"))):
81+
self.packages["tl-install"]["optional"] = True
8182
# Installed not from pio registry, deactivate until needed
8283
self.packages["tool-openocd-esp32"]["optional"] = True
8384

0 commit comments

Comments
 (0)