'If environment file is combined with explicit environment variables, the explicit environment variables
take precedence.'

def _get_environment(self):

    final_env = {}
    if self.env_file:
        parsed_env_file = utils.parse_env_file(self.env_file)
        for (name, value) in parsed_env_file.iteritems():
            final_env[name] = str(value)
    if self.env:
        for (name, value) in self.env.iteritems():
            final_env[name] = str(value)
    return final_env
