MCPcopy
hub / github.com/pex-tool/pex / activate

Method activate

pex/pex.py:286–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

284 return activated_dists
285
286 def activate(self):
287 # type: () -> Sequence[Distribution]
288 if self._activated_dists is None:
289 # 1. Scrub the sys.path to present a minimal Python environment.
290 self.patch_sys()
291 # 2. Activate all code and distributions in the PEX.
292 self._activated_dists = self._activate()
293 return self._activated_dists
294
295 @classmethod
296 def minimum_sys_modules(

Callers 5

executeMethod · 0.95
execute_scriptMethod · 0.95
_activateMethod · 0.45
_activate_pexFunction · 0.45
bootstrap_pex_envFunction · 0.45

Calls 2

patch_sysMethod · 0.95
_activateMethod · 0.95

Tested by

no test coverage detected