(self)
Allow only to pass essential environment variables.
Allow only to pass essential environment variables.
Allow only to pass essential environment variables .
def _run_env_cleanup_dict(self):
        """Allow only to pass essential environment variables."""
        environ_copy = os.environ.copy()
        for env_var in environ_copy:
            if env_var in Config.conf['invalid_host_env']:
                del os.environ[env_var]
                continue
            if not self.opt["hostenv"]:
                if env_var not in Config.conf['valid_host_env']:
                    del os.environ[env_var]
def _run_env_cleanup_dict ( self ) : environ_copy = os . environ . copy ( ) for env_var in environ_copy : if env_var in Config . conf [ 'invalid_host_env' ] : del os . environ [ env_var ] continue if not self . opt [ "hostenv" ] : if env_var not in Config . conf [ 'valid_host_env' ] : del os . environ [ env_var ]