pyBabyMaker.io.NestedYAMLLoader¶
This module provides a YAML loader with !include directive so that other
YAML files can be included in the input YAML file.
-
class
pyBabyMaker.io.NestedYAMLLoader.NestedYAMLLoader(stream)¶ An extension to the standard
SafeLoaderto allow the inclusion of another YAML file.-
__init__(stream)¶ Initialize the scanner.
-
include(node)¶ Load from another YAML file, the additional YAML file path must be relative to the original YAML file.
Warning
Tested to work with loading a
list, and not work with loading adict.
-