minetest-lexip16/rules/__init__.py

15 lines
378 B
Python
Raw Normal View History

2016-05-21 21:48:20 +08:00
from importlib import import_module
from pkgutil import iter_modules
textures = {}
override_textures = {}
overrides = {}
for _, name, _ in iter_modules(__path__):
mod = import_module('rules.' + name)
textures.update(getattr(mod, 'textures', {}))
override_textures.update(getattr(mod, 'override_textures', {}))
overrides.update(getattr(mod, 'overrides', {}))