From b4bf22fc13a4963fd381c8097dbec3d4009078c0 Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Fri, 28 Jul 2023 13:38:34 +0100 Subject: [PATCH] venv: Use Windows short paths for venv intepreter & pip as well. --- mu/virtual_environment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mu/virtual_environment.py b/mu/virtual_environment.py index 9588f94bb..0c6087fc6 100644 --- a/mu/virtual_environment.py +++ b/mu/virtual_environment.py @@ -531,11 +531,11 @@ def relocate(self, dirpath): # # Pip and the interpreter will be set up when the virtualenv is created # - self.interpreter = os.path.join( - self._bin_directory, "python" + self._bin_extension + self.interpreter = safe_short_path( + os.path.join(self._bin_directory, "python" + self._bin_extension) ) - self.pip_executable = os.path.join( - self._bin_directory, "pip" + self._bin_extension + self.pip_executable = safe_short_path( + os.path.join(self._bin_directory, "pip" + self._bin_extension) ) self.reset_pip() logger.debug(