module::which -- installation path
of a module
Introductionmodule::which(name) returns the
installation path of a dynamic module.
Call(s)module::which(name)
Parametersname |
- | module name: character string, identifier or module domain |
Returnsa character string of type DOM_STRING or the value FAIL, if the module cannot be
found.
Related
Functionsexternal, loadmod, module::new
Detailsmodule::which(name) uses the module
function stdmod::which to determine the module
installation path.
Example
1The example demonstrates how to determine the
installation path of a dynamic module. The value FAIL is returned for an unknown
module.
>> module::which("stdmod")
"/usr/local/mupad/linux/modules/stdmod.mdm"
>> module::which("AnyUnknownModule");
FAIL
Backgroundloadmod.