| Deutsch English Français Italiano |
|
<v54n4p$3aslh$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: aotto1968 <aotto1968@t-online.de> Newsgroups: comp.lang.tcl Subject: Re: typical TCL docu nonsens Date: Fri, 21 Jun 2024 22:17:29 +0200 Organization: A noiseless patient Spider Lines: 38 Message-ID: <v54n4p$3aslh$1@dont-email.me> References: <v53hqa$33n2h$1@dont-email.me> <Da-cnft8h9O-7Oj7nZ2dnZfqnPednZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 21 Jun 2024 22:17:30 +0200 (CEST) Injection-Info: dont-email.me; posting-host="72772beec07915e43ec9d6c2496e2ccf"; logging-data="3502769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pxsrRGc4kZmw8o+rJonAvmBETEv6Cogg=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:bc5jDnBrfOFnZdhIScF4gzTIEGY= Content-Language: en-US In-Reply-To: <Da-cnft8h9O-7Oj7nZ2dnZfqnPednZ2d@giganews.com> Bytes: 2863 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.