#### This Page

# `discover` (`base=None`)

- Method of Project

This is the way Lektor by defaults discovers project files. It will start out with the current path (of a given base path) and search upwards until it finds a folder with a single project file in and then loads this. If none of that leads to a file then `None` is returned.

## Example

    from lektor.project import Project

    project = Project.discover()

## Comments