From f8d54fd42ea91003756a763b1cb0d06f35e425f3 Mon Sep 17 00:00:00 2001 From: welch Date: Thu, 6 Aug 1998 15:49:24 +0000 Subject: added tcl_findLibrary --- doc/library.n | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/library.n b/doc/library.n index efdcb5a..016d5de 100644 --- a/doc/library.n +++ b/doc/library.n @@ -18,6 +18,7 @@ library \- standard library of Tcl procedures \fBauto_mkindex \fIdir pattern pattern ...\fR \fBauto_mkindex_old \fIdir pattern pattern ...\fR \fBauto_reset\fR +\fBtcl_findLibrary \fIbasename version patch initScript enVarName varName\fR \fBparray \fIarrayName\fR .VS \fBtcl_endOfWord \fIstr start\fR @@ -148,6 +149,26 @@ needed. index, so that fresh copies of them will be loaded the next time that they're used. .TP +\fBtcl_findLibrary \fIbasename version patch initScript enVarName varName\fR +This is a standard search procedure for use by extensions during +their initialization. They call this procedure to look for their +script library in several standard directories. +The last component of the name of the library directory is +normally \fIbasenameversion\fP +(e.g., tk8.0), but it might be "library" when in the build hierarchies. +The \fIinitScript\fR file will be sourced into the interpreter +once it is found. The directory in which this file is found is +stored into the global variable \fIvarName\fP. +If this variable is already defined (e.g., by C code during +application initialization) then no searching is done. +Otherwise the search looks in these directories: +the directory named by the environment variable \fIenVarName\fP; +relative to the Tcl library directory; +relative to the executable file in the standard installation +bin or bin/\fIarch\fP directory; +relative to the executable file in the current build tree; +relative to the executable file in a parallel build tree. +.TP \fBparray \fIarrayName\fR Prints on standard output the names and values of all the elements in the array \fIarrayName\fR. -- cgit v0.12