def restore(self):

        # Purge new environment variables
        for key in os.environ.keys():
            if not key in self._env:
                del os.environ[key]

        # Restore new variables
        for key, val in self._env.iteritems():
            os.environ[key] = val

        self._env = None
Restores the previously stored environment variables.
dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/EnvStorage.restore