FileLoader#
- class FileLoader(app, filename, *args, **kwargs)#
Bases:
ConfigLoaderLoad config from a file.
Common logic goes here.
- Parameters:
filename (str) – Path of configuration file to load.
app (Application)
args (Any)
kwargs (Any)
- write(fp, comment=None, comment_default=False)#
Write a configuration file corresponding to the loader config.
- Parameters:
fp (IO) – File stream to write to.
comment (Any) –
Include more or less information as comments. Can be one of:
full: all information about traits is included
no-help: trait help attribute is not included
none: no information is included, only the key and default value
comment_default (bool) – If True (default is False), comment the line
key = valueif the value is equal to the trait default.
- Return type:
None