Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 50:27:50 |
Calls: | 422 |
Files: | 1,024 |
Messages: | 90,508 |
Hello,
I'm using .tm modules on Linux (Debian) and currently have the
following environment variables set (.profile, .bashrc, .xsessionrc ):
export TCL8_6_TM_PATH="$HOME/lib/tcl8.6/site-tcl"
export TCL9_0_TM_PATH="$HOME/lib/tcl9.0/site-tcl"
This works fine. However:
is there a way to define a shared directory for .tm modules that can be
used by multiple Tcl versions, such as both 8.6 and 9.0?
greg <gregor.ebbing@gmx.de> wrote:
Hello,
I'm using .tm modules on Linux (Debian) and currently have the
following environment variables set (.profile, .bashrc, .xsessionrc ):
export TCL8_6_TM_PATH="$HOME/lib/tcl8.6/site-tcl"
export TCL9_0_TM_PATH="$HOME/lib/tcl9.0/site-tcl"
This works fine. However:
is there a way to define a shared directory for .tm modules that can be
used by multiple Tcl versions, such as both 8.6 and 9.0?
From the 'tm' man page (https://www.tcl-lang.org/man/tcl8.6.11/TclCmd/tm.html):
$::env(TCLX_y_TM_PATH)
A list of paths, separated by either : (Unix) or ; (Windows). This
is user and site specific as this environment variable can be set
not only by the user's profile, but by system configuration scripts
as well.
Note the "a list" and "separated by either : or ;" parts of the documentation.
Just create a shared dir, and add the shared dir to both variables,
i.e. (assuming Unix
below):
export TCL8_6_TM_PATH="$HOME/lib/tcl8.6/site-tcl:$HOME/lib/tcl-shared/stuff"