Version 3 of TCLLIBPATH

Updated 2004-07-20 11:23:41

Purpose: to document the use of another of the magic names in Tcl.

What is its purpose?

What is its format?

What are some good reasons to set it?

* test a package without installing.

What else?

TCL_LIBRARY


PT 20-Jul-2004 This environment variable is used to add directories to the Tcl package search path (the auto_path tcl global variable).

I like to keep all my local packages separate from the ActiveTcl installation that I use as a base. So I install all additional packages to a site-lib directory and then set TCLLIBPATH to this directory path. With this in place a [package require XYZ] command will search ActiveTcl and my site-lib directory for the most recent version of XYZ.


Category Tutorial