mini_arcade_core.utils.assets

Asset path helpers shared by games.

Functions

find_assets_root(→ pathlib.Path)

Find an assets directory by walking upward from an anchor file path.

Module Contents

mini_arcade_core.utils.assets.find_assets_root(anchor: str) pathlib.Path

Find an assets directory by walking upward from an anchor file path.

Parameters:

anchor (str) – File path used as the search starting point.

Raises:

FileNotFoundError – If assets directory cannot be found.