Tools for configuring a wmt-exe environment.
wmtexe.config.SiteConfiguration[source]¶Bases: object
Configure a wmt-exe environment.
Methods
from_path(clazz, filenames) |
Create a SiteConfiguration instance from a file or files. |
get(section, option) |
Get a configuration value. |
section(section) |
Get the all the values of a section in the configuration. |
set(section, option, value) |
Set a configuration value. |
write(file) |
Write a configuration file. |
from_path(clazz, filenames)[source]¶Create a SiteConfiguration instance from a file or files.
| Parameters: | filename : str or array-like of str
|
|---|---|
| Returns: | SiteConfiguration
|
get(section, option)[source]¶Get a configuration value.
| Parameters: | section : str
option : str
|
|---|
section(section)[source]¶Get the all the values of a section in the configuration.
| Parameters: | section : str
|
|---|---|
| Returns: | list of tuples
|