(
entry_point, # type: str
pex_info, # type: PexInfo
venv_dir=None, # type: Optional[str]
)
| 706 | |
| 707 | |
| 708 | def _activate_pex( |
| 709 | entry_point, # type: str |
| 710 | pex_info, # type: PexInfo |
| 711 | venv_dir=None, # type: Optional[str] |
| 712 | ): |
| 713 | # type: (...) -> Iterator[str] |
| 714 | |
| 715 | if pex_info.venv: |
| 716 | for location in _activate_venv_dir(entry_point, venv_dir=venv_dir): |
| 717 | yield location |
| 718 | return |
| 719 | |
| 720 | from . import pex |
| 721 | |
| 722 | yield entry_point |
| 723 | for distribution in pex.PEX(entry_point).activate(): |
| 724 | yield distribution.location |
| 725 | |
| 726 | |
| 727 | def _activate_venv_dir( |
no test coverage detected