minetest-lexip16/rules/__init__.py
2016-06-19 00:30:31 +08:00

13 lines
287 B
Python

from importlib import import_module
from pkgutil import iter_modules
textures = {}
overrides = {}
for _, name, _ in iter_modules(__path__):
mod = import_module('rules.' + name)
textures.update(getattr(mod, 'textures', {}))
overrides.update(getattr(mod, 'overrides', {}))