maat.MaatConfig class

A static global configuration class for Maat, mainly used to manage SLEIGH specification files (.pspec or .sla) for processor semantics.

Maat searches for files as follows:

1. Explicit files added with MaatConfig.add_explicit_sleigh_file()
2. Explicit directories added with MaatConfig.add_explicit_sleigh_dir()
3. Sleigh files directory, specified with `MAAT_SLEIGH_DIR` env variable 4. Maat install directory, specified with `MAAT_INSTALL_DIR` env variable
5. Known relative paths from the library location 6. Standard locations such as '/usr/local/', '/usr/', ...

❱   Methods

add_explicit_sleigh_dir(str dirpath)

Static method. Add an explicit directory where to search for SLEIGH specification files

Parameters
dirpath Directory containing SLEIGH files.

add_explicit_sleigh_file(str filepath)

Static method. Add an explicit path to a SLEIGH file

Parameters
filepath Path to the file