aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-11-03 20:52:27 +1000
committerSteve Bennett <steveb@workware.net.au>2010-11-08 15:26:22 +1000
commitb7a3951c0046491a62399fc51fe809e24e5eb8b7 (patch)
treef8e446671295666b44a8709cf18f13a5a64ca14b /jim_tcl.txt
parentcba565f4ccd4a667cc3b51108fae55cc735b36aa (diff)
downloadjimtcl-b7a3951c0046491a62399fc51fe809e24e5eb8b7.zip
jimtcl-b7a3951c0046491a62399fc51fe809e24e5eb8b7.tar.gz
jimtcl-b7a3951c0046491a62399fc51fe809e24e5eb8b7.tar.bz2
Don't hardcode /lib/jim
Instead, set TCL_LIBRARY based on where jim is installed. This defaults to /usr/local (thus /usr/local/lib/jim), or can be modified with either configure or make. e.g. ./configure --prefix=/usr or make prefix=/usr install Now auto_path is initialised only to TCL_LIBRARY, and doesn't include "." which could be undesirable. At the same time, simplify jimsh initialisation using a script instead of C code. Add the path to the executable to auto_path. Also, no longer use JIM_TCL_COMPAT. Always use the tcl-compatible names, $auto_path and $tcl_interactive. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index cea5bf8..7cff785 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -2930,8 +2930,6 @@ otherwise if '$name.tcl' exists it is loaded with the 'source' command.
If 'load' or 'source' fails, 'package require' will fail immediately.
No further attempt will be made to locate the file.
-Typically '$::auto_path' contains the paths '.' and '/lib/jim'.
-
pid
~~~
+*pid*+
@@ -4305,7 +4303,11 @@ by the Tcl library.
+*auto_path*+::
This variable contains a list of paths to search for packages.
- It contains {. /lib/jim} by default.
+ It defaults to a location based on where jim is installed
+ (e.g. +/usr/local/lib/jim+), but may be changed by +jimsh+
+ or the embedding application. Note that +jimsh+ will consider
+ the environment variable +$JIMLIB+ to be a list of colon-separated
+ list of paths to add to *auto_path*.
+*errorCode*+::
This variable holds the value of the -errorcode return