(blocklist_path=None)
return blocklist_path
Checks and returns the Sigma blocklist path.

    This includes filenames, paths, ids.

    Args:
        blocklist_path(str): Path to a blocklist file.
            The default value is './data/sigma_blocklist.csv'

    Returns:
        Sigma Blocklist path

    Raises:
        ValueError: Sigma blocklist file is not readabale.
Checks and returns the Sigma blocklist path.
Checks and returns the Sigma blocklist path .
def get_sigma_blocklist_path(blocklist_path=None):
    """Checks and returns the Sigma blocklist path.

    This includes filenames, paths, ids.

    Args:
        blocklist_path(str): Path to a blocklist file.
            The default value is './data/sigma_blocklist.csv'

    Returns:
        Sigma Blocklist path

    Raises:
        ValueError: Sigma blocklist file is not readabale.
    """
    logger.error(blocklist_path)

    if not blocklist_path or blocklist_path == '':
        blocklist_path = current_app.config.get(
            'SIGMA_BLOCKLIST_CSV', './data/sigma_blocklist.csv')
    if not blocklist_path:
        raise ValueError('No blocklist_file_path set via param or config file')

    if not os.path.isfile(blocklist_path):
        raise ValueError(
            'Unable to open file: [{0:s}], it does not exist.'.format(
                blocklist_path))

    if not os.access(blocklist_path, os.R_OK):
        raise ValueError(
            'Unable to open file: [{0:s}], cannot open it for '
            'read, please check permissions.'.format(blocklist_path))

    return blocklist_path
def get_sigma_blocklist_path ( blocklist_path = None ) : logger . error ( blocklist_path ) if not blocklist_path or blocklist_path == '' : blocklist_path = current_app . config . get ( 'SIGMA_BLOCKLIST_CSV' , './data/sigma_blocklist.csv' ) if not blocklist_path : raise ValueError ( 'No blocklist_file_path set via param or config file' ) if not os . path . isfile ( blocklist_path ) : raise ValueError ( 'Unable to open file: [{0:s}], it does not exist.' . format ( blocklist_path ) ) if not os . access ( blocklist_path , os . R_OK ) : raise ValueError ( 'Unable to open file: [{0:s}], cannot open it for ' 'read, please check permissions.' . format ( blocklist_path ) ) return blocklist_path