def _env_or_config_or_default(self, env=None, file=None, section=None, name=None, default=None):
        """
        Get the value of the environment variable or config file value.
        The environment variable takes precedence.

        :param env: The environment variable name.
        :param name: The config file key.
        :return: The value or None if not found
        """
        env_val = environ.get(env)
        if env_val is not None:
            return env_val

        try:
            return self.configparsers[file].get(section, name)
        except (NoSectionError, NoOptionError, KeyError):
            return default