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:
- 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
- compactString(string)