Sujet : Re: typical TCL docu nonsens
De : aotto1968 (at) *nospam* t-online.de (aotto1968)
Groupes : comp.lang.tclDate : 21. Jun 2024, 21:17:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v54n4p$3aslh$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 21.06.24 14:25, Robert Heller wrote:
At Fri, 21 Jun 2024 11:40:25 +0200 aotto1968 <aotto1968@t-online.de> wrote:
>
>
typical TCL "package" horror
>
# I know finally the "autopath" is the WRONG name
lappend autopath /some/path/to/package/dir
The correct name is auto_path. The docs say so:
auto_path
If set, then it must contain a valid Tcl list giving directories
to search during auto-load operations (including for package inâ€Â
dex files when using the default package unknown handler). This
variable is initialized during startup to contain, in order: the
directories listed in the TCLLIBPATH environment variable, the
directory named by the tcl_library global variable, the parent
directory of tcl_library, the directories listed in the tcl_pkgâ€Â
Path variable. Additional locations to look for files and packâ€Â
age indices should normally be added to this variable using lapâ€Â
pend.
Additional variables relating to package management exist. More
details are listed in the VARIABLES section of the library manâ€Â
ual page.
Where did you see "autopath"?
>
the core problem is *not* the "autopath" is wrong because at the time I use it I
does not know it was wrong. The core problem is that is was *very* difficult to figure
out what was the "right" name. special the tcl_traceExec… does not help and more
important the package.n docu (package require…) does *not* spend a single word on
*how* to find a package.