Re: Tcl: Shared directory for .tm modules across 8.6 and 9.0?

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Tcl: Shared directory for .tm modules across 8.6 and 9.0?
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tcl
Date : 05. May 2025, 23:45:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvbf24$1em7m$2@dont-email.me>
References : 1
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
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"


Date Sujet#  Auteur
5 May 25 * Tcl: Shared directory for .tm modules across 8.6 and 9.0?3greg
5 May 25 `* Re: Tcl: Shared directory for .tm modules across 8.6 and 9.0?2Rich
7 May 25  `- Re: Tcl: Shared directory for .tm modules across 8.6 and 9.0?1greg

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal