Sujet : Re: Tcl: Shared directory for .tm modules across 8.6 and 9.0?
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tclDate : 07. May 2025, 00:58:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vve7n4$2qvq$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
Am 06.05.25 um 00:45 schrieb Rich:
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"
Hello,
thanks, that's exactly what I was looking for.
Gregor