exorad.tasks.loadOptions module

class LoadOptions[source]

Bases: Task

Reads the xml file with payload description and return an object with attributes related to the input data

Parameters:
  • filename (string) – input xml file location

  • config_path (string (optional)) – on-run setting for ConfigPat. Default is None.

Returns:

parsed xml input file

Return type:

dict

Raises:

IOError – if the indicated file is not found or the format is not supported

Examples

>>> loadOptions = LoadOptions()
>>> options = loadOptions(filename = 'path/to/file.xml')

Class initialisation, needed to prepare the task inputs reader

configPath = None
execute()[source]

Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords

getopt()[source]
compactString(string)