Bootstrap the current runtime environment using a given pex.
(entry_point)
| 780 | # NB: This helper is used by third party libs like https://github.com/wickman/lambdex and |
| 781 | # https://github.com/kwlzn/pyuwsgi_pex. |
| 782 | def bootstrap_pex_env(entry_point): |
| 783 | # type: (str) -> None |
| 784 | """Bootstrap the current runtime environment using a given pex.""" |
| 785 | pex_info = _bootstrap(entry_point) |
| 786 | |
| 787 | from .environment import PEXEnvironment |
| 788 | |
| 789 | PEXEnvironment.mount(entry_point, pex_info).activate() |
| 790 | |
| 791 | from . import bootstrap |
| 792 | |
| 793 | bootstrap.demote() |
nothing calls this directly
no test coverage detected