Skip to content

Commit 319025e

Browse files
authored
Refactor Python environment setup in platform.py
1 parent f8d3461 commit 319025e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@ def configure_default_packages(self, variables: Dict, targets: List[str]) -> Uni
824824
core_dir = ProjectConfig.get_instance().get("platformio", "core_dir")
825825

826826
try:
827-
penv_python, esptool_path = _setup_pipenv_minimal(core_dir)
828-
self._penv_python = penv_python
829-
self._esptool_path = esptool_path
827+
self._penv_python, self._esptool_path = self._setup_python_environment(
828+
None, self, core_dir, True
829+
)
830830
except Exception as e:
831831
logger.error(f"Python environment setup failed: {e}")
832832

0 commit comments

Comments
 (0)