def _unpack_bootstrap_env(self, target, trn):
        vdir = os.path.basename(target)
        #  Move new bootrapping environment into main app dir.
        #  Be sure to move dependencies before executables.
        bootstrap = os.path.join(target, ESKY_CONTROL_DIR, "bootstrap")
        for nm in self._version_manifest(vdir):
            bssrc = os.path.join(bootstrap, nm)
            bsdst = os.path.join(self.appdir, nm)
            if os.path.exists(bssrc):
                #  On windows we can't atomically replace files.
                #  If they differ in a "safe" way we put them aside
                #  to overwrite at a later time.
                if sys.platform == "win32" and os.path.exists(bsdst):
                    if not files_differ(bssrc, bsdst):
                        trn.remove(bssrc)
                    elif esky.winres.is_safe_to_overwrite(bssrc, bsdst):
                        ovrdir = os.path.join(target, ESKY_CONTROL_DIR)
                        ovrdir = os.path.join(ovrdir, "overwrite")
                        if not os.path.exists(ovrdir):
                            os.mkdir(ovrdir)
                        trn.move(bssrc, os.path.join(ovrdir, nm))
                    else:
                        trn.move(bssrc, bsdst)
                else:
                    trn.move(bssrc, bsdst)
            if os.path.isdir(os.path.dirname(bssrc)):
                if not os.listdir(os.path.dirname(bssrc)):
                    trn.remove(os.path.dirname(bssrc))
        #  Remove the bootstrap dir; the new version is now installed
        trn.remove(bootstrap)
Test to see if the given license key is installed
dataset/ETHPy150Open cloudmatrix/esky/esky/__init__.py/Esky._unpack_bootstrap_env--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/win_license_test.py/LicenseTestCase.test_installed