| ... | ... | @@ -26,6 +26,18 @@ This page provides a compact but clear introduction to the usage of lua and to t |
|
|
|
|
|
|
|
- https://lmod.readthedocs.io/en/latest/050_lua_modulefiles.html
|
|
|
|
|
|
|
|
Here below some examples:
|
|
|
|
```
|
|
|
|
-- A comment --
|
|
|
|
load ("python") -- load the python lua module
|
|
|
|
setenv ("WAFDIR", "/usr/share/waf") -- Set an environment variable
|
|
|
|
append_path("PATH", "/usr/share) -- Append to an env var
|
|
|
|
prepend_path( "LD_LIBRARY_PATH", "/boost/lib") -- Prepend to an env var
|
|
|
|
set_alias ("emacs","emacs -l /elt/System/.emacs.d/default.el")
|
|
|
|
local root = "/elt/msgsend" -- set local variable
|
|
|
|
print("Hello " .. "World") -- .. concatenates strings
|
|
|
|
```
|
|
|
|
|
|
|
|
# Where are the ELT DevEnv lua files?
|
|
|
|
|
|
|
|
The standard ELT development environment provides some lua files to set default variables (`PATH`, `LD_LIBRARY_PATH` …). There are located under:
|
| ... | ... | |