from_file (filename)This is the most common way to create a project instance.  It's a class
method that given the path to a project file will load the project.  If
the file does not exist then None is returned.
from lektor.project import Project project = Project.from_file('/path/to/the/project.lektorproject')
Comments