Skip to content

Commit b51adf8

Browse files
authored
remove .piopm in both tl install folders
1 parent b29a588 commit b51adf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ def _install_tl_install(self, version: str) -> bool:
308308
# Copy tool-esp_install content to tl-install location
309309
if safe_copy_directory(tl_install_path, old_tl_install_path):
310310
logger.info(f"Content copied from {tl_install_name} to old tl-install location")
311-
tl_piopm_path = os.path.join(old_tl_install_path, ".piopm")
311+
old_tl_piopm_path = os.path.join(old_tl_install_path, ".piopm")
312+
safe_remove_file(old_tl_piopm_path)
313+
tl_piopm_path = os.path.join(tl_install_path, ".piopm")
312314
safe_remove_file(tl_piopm_path)
313315
else:
314316
logger.warning(f"Failed to copy content to old tl-install location")

0 commit comments

Comments
 (0)