--modulepath option¶
This document describes the --modulepath option added on several
modulefile commands.
Supported modulefile commands¶
--modulepath option is available on the following modulefile commands:
prereq(and its aliasprereq-any)prereq-all(and its aliasdepends-on)
Option value¶
--modulepath option accepts a list of modulepaths as value. Multiple
modulepaths are separated by colon character.
Behavior¶
When option is set, required module should be located in one of the listed modulepaths. It should be located either:
in a modulepath, currently enabled (part of
MODULEPATH), whose starting path elements correspond to a directory listed in the option value listin a modulepath, not part of
MODULEPATH, listed in the option value list
For instance if value list of --modulepath option equals
/path/to:/another/path and MODULEPATH currently equals
/path/to/modulefiles. Required module should be located into either
/path/to/modulefiles or /another/path directories.
If required module name is not loaded, a module search is performed in the resolved directories, as explained above.
If required module name is already loaded, its path location is checked
against the directories listed in --modulepath option to verify one
corresponds to its first path elements. Paths elements are expected to be full
directory name. For instance /path/to/mod will not match
/path/to/modulefiles directory.