## `module::which` -- installation path of a module

#### Introduction

`module::which``(name)` returns the installation path of a dynamic module.

#### Call(s)

`module::which(name)`

#### Parameters

`name` | - | module name: character string, identifier or module domain

#### Returns

a character string of type `DOM_STRING` or the value `FAIL`, if the module cannot be found.

#### Related Functions

`external`, `loadmod`, `module::new`

#### Details

- `module::which``(name)` uses the module function `stdmod::which` to determine the module installation path.

#### Example 1

The 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

#### Background

- The directory search order of modules files is described with the kernel function `loadmod`.

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000