beetlebug▾
/

info library

Gives the value of tcl_library, the folder of the Tcl library.

info library

Description

Gives the value of the global variable tcl_library. ztcl has no library of Tcl scripts on disk and sets no tcl_library, so the call is an error unless a script sets that variable.

Returns

The value of tcl_library.

Examples

% set ::tcl_library /lib/tcl; set r [info library]; unset ::tcl_library; set r
/lib/tcl

Errors

% info library
no library has been specified for Tcl
-errorcode NONE

% info library x
wrong # args: should be "info library"
-errorcode TCL WRONGARGS

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also