def clone(self, into=None):
    into = into or safe_mkdtemp()
    new_chroot = Chroot(into)
    for label, fileset in self.filesets.items():
      for fn in fileset:
        new_chroot.link(os.path.join(self.chroot, fn), fn, label=label)
    return new_chroot
Clone this chroot.
dataset/ETHPy150Open pantsbuild/pex/pex/common.py/Chroot.clone