aside.resources module

Manages the package resource files.

root: importlib_resources.abc.Traversable

The root traversable resource location.

See importlib_resources and importlib.resources for more information.

get_svg(name: str)bytes[source]

Find and load an svg resource specified by name.

Parameters

name – The name of the svg resource without the file extension.

Returns

The contents of the resource, suitable to be loaded with loadFromData.

Todo

Take the current LOCALE into account:

  • look for root/locale/name first

  • then fallback to root/name

Todo

Generate/interpolate SVGs on the fly, possibly with system caching.