mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-02 04:00:48 +02:00
modulecmd: bugfix in module-addgroup
the modulefiles root is now in the array OverlayInfo
This commit is contained in:
@@ -92,10 +92,11 @@ proc module-addgroup { group } {
|
||||
debug "group=$group"
|
||||
debug "::variant=$::variant"
|
||||
set dir [file join \
|
||||
$overlay \
|
||||
$::OverlayInfo($overlay:mod_root) \
|
||||
$group \
|
||||
$::MODULEFILES_DIR \
|
||||
{*}$::variant]
|
||||
debug "dir=$dir"
|
||||
if { [file isdirectory $dir] } {
|
||||
debug "prepend $dir to MODULEPATH "
|
||||
prepend-path MODULEPATH $dir
|
||||
|
||||
Reference in New Issue
Block a user