Skip to content

Commit

Permalink
Fix interpreter path mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Oct 27, 2024
1 parent 2ef1b8b commit 128a523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pex/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Platlib(SitePackagesDir):
pass


_PATH_MAPPINGS = {}
_PATH_MAPPINGS = {} # type: Dict[str, str]


@contextmanager
Expand Down
2 changes: 1 addition & 1 deletion pex/pex_bootstrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def ensure_venv(
from pex.cache.data import record_venv_install
from pex.venv.virtualenv import Virtualenv

with interpreter.path_mapping(venv.work_dir, venv_dir):
with interpreter.path_mapping(venv.work_dir, venv_dir.path):
virtualenv = Virtualenv.create_atomic(
venv_dir=venv,
interpreter=pex.interpreter,
Expand Down

0 comments on commit 128a523

Please sign in to comment.