Skip to content

Commit

Permalink
venv: Use Windows short paths for venv intepreter & pip as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate committed Jul 28, 2023
1 parent b71af75 commit b4bf22f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mu/virtual_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b4bf22f

Please sign in to comment.