File: modulepath-option.rst

package info (click to toggle)
modules 5.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,036 kB
  • sloc: exp: 79,659; sh: 6,142; tcl: 5,900; makefile: 1,492; ansic: 474; python: 265; csh: 202; perl: 47; ruby: 44; lisp: 13
file content (51 lines) | stat: -rw-r--r-- 1,727 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.. _modulepath-option:

``--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:

* :mfcmd:`always-load`
* :mfcmd:`prereq` (and its alias :mfcmd:`prereq-any`)
* :mfcmd:`prereq-all` (and its alias :mfcmd:`depends-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 :envvar:`MODULEPATH`), whose
  starting path elements correspond to a directory listed in the option value
  list

* in a modulepath, not part of :envvar:`MODULEPATH`, listed in the option
  value list

For instance if value list of ``--modulepath`` option equals
``/path/to:/another/path`` and :envvar:`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.

.. vim:set tabstop=2 shiftwidth=2 expandtab autoindent: