(self, config_file: Optional[str] = None)
Bandersnatch configuration class singleton

        This class is a singleton that parses the configuration once at the
        start time.

        Parameters
        ==========
        config_file: str, optional
            Path to the configuration file to use
Bandersnatch configuration class singleton
Bandersnatch configuration class singleton
def __init__(self, config_file: Optional[str] = None) -> None:
        """
        Bandersnatch configuration class singleton

        This class is a singleton that parses the configuration once at the
        start time.

        Parameters
        ==========
        config_file: str, optional
            Path to the configuration file to use
        """
        self.found_deprecations: List[str] = []
        with importlib.resources.path("bandersnatch", "default.conf") as config_path:
            self.default_config_file = str(config_path)
        self.config_file = config_file
        self.load_configuration()
def __init__ ( self , config_file : Optional [ str ] = None ) -> None : self . found_deprecations : List [ str ] = [ ] with importlib . resources . path ( "bandersnatch" , "default.conf" ) as config_path : self . default_config_file = str ( config_path ) self . config_file = config_file self . load_configuration ( )