Source code for pyvcad_attribute_resolver.modules
"""Domain-specific conversion modules.
Each sub-package registers its own set of ConversionEntry objects.
To discover the installed modules, call :func:`list_modules`.
"""
import importlib
import pkgutil
[docs]
def list_modules():
"""Return the names of all installed sub-packages under ``modules/``."""
return [name for _, name, is_pkg in pkgutil.iter_modules(__path__)
if is_pkg]