mirror of
https://github.com/envmodules/modules.git
synced 2026-06-07 00:25:05 +08:00
Now getAbsolutePath procedure, which make a path passed as argument an absolute path, check the current path of the interpreted modulefile or modulerc rather always taking the current path of the module command execution. So a modulefile or modulerc can use relative paths based on a determistic way as it is now based on their location. Previously it was not possible as relative paths were dependent of the location from where the module command was executed. If ModulesCurrentModulefile variable is not empty, getAbsolutePath nows it is called during a modulefile/modulerc interpretation, so it takes the directory name of this ModulesCurrentModulefile as current working directory.
26 lines
640 B
Plaintext
26 lines
640 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: alias/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2018/01/07
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: module
|
|
#
|
|
# Invocation: load @M@, display @M@
|
|
# Comment: %C{
|
|
# Checks the recursive invocation of module, playing with relative paths
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module load ../append/0.2
|