Version 8 of TCLLIBPATH

Updated 2004-11-08 05:05:28

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

What is its purpose?

To provide user specified locations to add to the package search path.

What is its format?

A tcl list of directory paths (unix-style paths for Win32 users). e.g: set TCLLIBPATH="/opt/tcl/site-lib /users/pat/working"

What are some good reasons to set it?

PT 20-Jul-2004: 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.

* test a package without installing.

What else?


See also TCL_L IBRARY

[ Category Tutorial ]