Version 7 of tcl_pkgPath

Updated 2005-08-22 14:35:09

This variable holds a list of directories indicating where packages are normally installed. See tclvars for more information.

Tcl syntax help


Is this variable obsolete? My 8.4.5 tclsh & wish interps on windows tell me:

 can't read "tcl_pkgPath": no such variable

The teki installer supplied with the winico distribution seems to expect this variable to exist.


The variable was removed from the Windows port of Tcl only, several releases ago. (Bad idea, if you ask me, but they didn't ask at the time).

See Tcl Bug 1072603.

The "teki installer" you have is apparently not up to date.


escargo 22 Aug 2005 - This variable is also missing from the Cygwin port. Any notion of what is being used to find packages instead?

Um, Cygwin is Windows, so we repeat ourselves, there's no tcl_pkgPath variable there.

Even on systems where a tcl_pkgPath variable exists, it is not used to "find pacakges". Rather, its only legitimate use is to direct package installers where (the default package system of) Tcl is looking for packages. If you're not writing a package installer script, just pretend the tcl_pkgPath variable does not exist.


Category Dev. Tools | Category Porting