'Build a list of commands used to construct the environment described by this object.'

def environment_commands(self, action_type):

    cmds = []
    for env_shell_file_path in self.env_shell_file_paths:
        if os.path.exists(env_shell_file_path):
            for env_setting in open(env_shell_file_path):
                cmds.append(env_setting.strip('\n'))
        else:
            log.debug(('Invalid    file    %s    specified,    ignoring    %s    action.' % (str(env_shell_file_path), str(action_type))))
    return cmds
