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

Function unzip_dir

pex/variables.py:801–812  ·  view source on GitHub ↗
(
    pex_root,  # type: str
    pex_hash,  # type: str
    expand_pex_root=True,  # type: bool
)

Source from the content-addressed store, hash-verified

799
800
801def unzip_dir(
802 pex_root, # type: str
803 pex_hash, # type: str
804 expand_pex_root=True, # type: bool
805):
806 # type: (...) -> UnzipDir
807
808 # N.B.: We need lazy import gymnastics here since CacheType uses Variables for PEX_ROOT.
809 from pex.cache.dirs import UnzipDir
810
811 pex_root = _expand_pex_root(pex_root) if expand_pex_root else pex_root
812 return UnzipDir.create(pex_hash=pex_hash, pex_root=pex_root)
813
814
815def venv_dir(

Callers 3

_ensure_installedFunction · 0.90
test_unzip_modeFunction · 0.90

Calls 2

_expand_pex_rootFunction · 0.85
createMethod · 0.45

Tested by 2

test_unzip_modeFunction · 0.72