File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,13 +33,6 @@ if {[module-info mode load]} {
3333 # - When the module is loaded, set the variables and functions that changed to their new values.
3434 # When the module is unloaded, re-set them to their old values.
3535
36- # To handle tcl and bash quoting correctly, we first set up the bash script in a TCL variable
37- # (bash_script) and then run it using `exec /bin/bash -c $bash_script`
38- # For this reason, we double the percent sign (%%) when we want a literal percent, because the script
39- # is within a TCL `format` function that would otherwise interpret the percent as a formatting sign.
40- # NOTE: this setup could be simplified by writing the bash script into a file
41- # (shipped together with the spack module), and exec that file using somthing like `exec /bin/bash <path/to/file>`
42-
4336 # The bash script is in the same directory as this modulefile, and is named .<module_version>.sh
4437 set bash_script "$spack_module_dir/.$module_version.sh"
4538
@@ -81,7 +74,7 @@ if {[module-info mode load]} {
8174set-alias spacktivate {spack env activate}
8275
8376# Set spack user cache path
84- set spack_admin_config_env_var_name SPACK_ADMIN_CONFIG
77+ set spack_admin_config_env_var_name ACCESS_SPACK_ADMIN
8578if { [info exists env($spack_admin_config_env_var_name)] } {
8679 setenv SPACK_USER_CACHE_PATH "$base_dir/spack-admin-cache"
8780} else {
You can’t perform that action at this time.
0 commit comments