Import a Python module.
Module must be in Python module search path. The search path can be set via the environment variable PYTHONPATH or by manipulating the list of paths retrieved by using get_sys_path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(module_py), | intent(out) | :: | mod_py | The imported module |
||
character(kind=C_CHAR,len=*), | intent(in) | :: | mod_name | Name of the module to import. Name can include dots "." |
Error code, 0 on success.