Classes for configuring a wmt-exe environment.
wmtexe.env.Babel(**kwds)[source]¶Bases: object
CCA Babel configuration.
| Parameters: | **kwds
|
|---|
Attributes
babel_config |
Babel configuration values. |
cca_spec_babel_config |
cca-spec-babel configuration values. |
libs |
Libraries used with cca-spec-babel. |
prefix |
Prefix used for Babel installation. |
Methods
query_cca_spec_var(var) |
Query a cca-spec-babel configuration variable. |
query_var(var) |
Query a Babel configuration variable. |
babel_config¶Babel configuration values.
cca_spec_babel_config¶cca-spec-babel configuration values.
libs¶Libraries used with cca-spec-babel.
prefix¶Prefix used for Babel installation.
wmtexe.env.Python(python='python')[source]¶Bases: object
Python configuration.
| Parameters: | python : str, optional
|
|---|
Attributes
executable |
Python executable. |
lib |
Path to Python lib directory. |
prefix |
Prefix for Python installation. |
version |
Python version. |
Methods
query_exec_prefix() |
Get the path to the Python executables directory. |
query_version() |
Get the version of Python. |
site_packages([prefix]) |
Path to Python site-packages directory. |
executable¶Python executable.
lib¶Path to Python lib directory.
prefix¶Prefix for Python installation.
query_exec_prefix()[source]¶Get the path to the Python executables directory.
| Returns: | str
|
|---|
query_version()[source]¶Get the version of Python.
Get the version of a Python instance as pythonX.Y.
| Parameters: | python : string
|
|---|---|
| Returns: | str
|
site_packages(prefix=None)[source]¶Path to Python site-packages directory.
| Parameters: | prefix : str, optional
|
|---|---|
| Returns: | str
|
version¶Python version.
wmtexe.env.WmtEnvironment[source]¶Bases: object
WMT executor configuration.
Attributes
env |
WMT environment variables. |
Methods
from_config(clazz, filenames) |
Loads WMT environment variables from configuration files. |
from_dict(clazz, *args, **kwds) |
Loads WMT environment variables from arguments. |
to_dict() |
Converts WMT environment variables to an OrderedDict. |
env¶WMT environment variables.
from_config(clazz, filenames)[source]¶Loads WMT environment variables from configuration files.
| Parameters: | filenames : dict
|
|---|---|
| Returns: | WmtEnvironment
|