def load_local_config(filename):
    """Loads the pylint.config.py file.

    Args:
        filename (str): The python file containing the local configuration.

    Returns:
        module: The loaded Python module.
    """
    if not filename:
        return imp.new_module('local_pylint_config')
    module = imp.load_source('local_pylint_config', filename)
    return module
Loads the pylint.config.py file.

    Args:
        filename (str): The python file containing the local configuration.

    Returns:
        module: The loaded Python module.