The parser module collides with a module in python called parser. Doesn't seem to be a problem in Linux but for some reason the search/include order in Windows causes python to import the wrong parser. The change is to rename the module to dictionary_parser to avoid the name space collision. fixes: #36339 Signed-off-by: David Leach <david.leach@nxp.com>
22 lines
386 B
Python
22 lines
386 B
Python
#!/usr/bin/env python3
|
|
#
|
|
# Copyright (c) 2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""
|
|
Dictionary-based Logging Parser Module
|
|
"""
|
|
|
|
from .log_parser_v1 import LogParserV1
|
|
|
|
|
|
def get_parser(database):
|
|
"""Get the parser object based on database"""
|
|
db_ver = int(database.get_version())
|
|
|
|
if db_ver == 1:
|
|
return LogParserV1(database)
|
|
|
|
return None
|