scene.FilesystemFinder

moderngl_window.finders.scene.FilesystemFinder[source]

Find scenes in settings.SCENE_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 = 'SCENE_DIRS'