program.FilesystemFinder

moderngl_window.finders.program.FilesystemFinder[source]

Find shaders in settings.PROGRAM_DIRS

Methods

FilesystemFinder.__init__()

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

FilesystemFinder.find(path: pathlib.Path) → pathlib.Path

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

FilesystemFinder.settings_attr = 'PROGRAM_DIRS'