Module loading facade
- Parameters:
modname (str) - Module name part (like util for tdi.c._tdi_util), see tpl
env_override (str) - Name of the environment variable, which can disable the c extension
import if set to 1. If omitted or None,
DEFAULT_ENV_OVERRIDE is applied.
tpl (str) - Template for the fully qualified module name. It has to contain one
%s format specifier which takes the modname part. If omitted or
None, DEFAULT_TPL is applied.
- Returns: module
- The requested module or None (either by env request or
ImportError)
|