load_plugins ()

Normally when an environment is constructed plugins are loaded automatically. If you disabled this when creating the environment you can still at a later point load the plugins by invoking this method.

Example

from lektor.project import Project

project = Project.discover()
env = project.make_env(load_plugins=False)
env.load_plugins()

Comments