base.BaseFilesystemFinder

moderngl_window.finders.base.BaseFilesystemFinder[source]

Base class for searching filesystem directories

Methods

BaseFilesystemFinder.__init__()[source]

Initialize finder class by looking up the paths referenced in settings_attr.

BaseFilesystemFinder.find(path: Path) Path[source]

Finds a file in the configured paths returning its absolute path.

Parameters:

path (pathlib.Path) – The path to find

Returns:

The absolute path to the file or None if not found

Attributes

BaseFilesystemFinder.settings_attr = None

Name of the attribute in Settings containing a list of paths the finder should search in.

Type:

str