Because the environment is reused between builds, the config is not cached
on the environment but needs to be explicitly loaded. This happens with
the help of the
load_config method. It returns a config object that
gives access to the settings in the project file.
These settings are work in progress and if you want to know how to use the config file and what to do with it, you have to consult the source code.
from lektor.project import Project project = Project.discover() env = project.make_env() config = env.load_config()