pyjob.config.
PyJobConfig
(**kwargs)[source]¶Bases: collections.UserDict
, pyjob.config.ImmutableDictMixin
file
= '/home/docs/.pyjob/pyjob.yml'¶from_default
()[source]¶Construct the configuration from the default file
Returns: | A PyJobConfig instance |
---|---|
Return type: | PyJobConfig |
read_yaml
(yamlf)[source]¶Read a YAML file
Parameters: | yamlf (str) – The path to a PyJob YAML config file |
---|---|
Returns: | A PyJobConfig instance |
Return type: | PyJobConfig |
Raises: | FileNotFoundError – Cannot find YAML file |