Dear list,
I have a very limited knowledge on environment modules so pardon my
ignorance.
In several of our modules, we copy the EXEDIR of a module in another
environment variable (this is needed):
module load dep/1.0.0
setenv MY_VAR "$env(DEP_EXEDIR)"
(sometimes without the quotes but I think it doesn't change much).
I can load the module without problems but other commands fail
(`display`, `search`, maybe others) because then DEP_EXEDIR doesn't
exists in the environment.
I haven't found much in the doc but according to a discussion thread
from March 2012 (see
https://sourceforge.net/p/modules/mailman/modules-interest/thread/4F656C23.5020700%40lakata.org/#msg28999371),
one way to do this is:
module load dep/1.0.0
setenv MY_VAR [getenv DEP_EXEDIR]
However, the thread contains some variations: `get_env` instead of
`getenv`, no need of [], etc. Can somebody tell me what is the correct
form ?
Thanks in advance,
Mathieu
--
Mathieu Dubois - IR - UMR 8030 équipe LABGeM
CEA - Genoscope. 2 rue Gaston Crémieux. 91057 Evry Cedex France.
Bureau B07
+33 1 60 87 53 35
|