Skip to content

Targettxt parser

targettxt_parser

Code to help parse Edk2 Conf/Target.txt file.

TargetTxtParser

Parser for the Edk2 Conf/Target.txt file.

Attributes:

Name Type Description
Parsed bool

Whether the object has parsed a file or not

Lines list

Ordered list of each line in the file

Dict dict

Key / Value pair of all lines that contain a = in them (key=value)

Path str

path to Target.txt file

__init__

__init__() -> TargetTxtParser

Inits an empty parser.

ParseFile

ParseFile(filepath: str) -> None

Parses the file provided.