| Description: |
In snit2.tcl:
namespace eval ::snit:: {
set library [file dirname [info script]]
}
If the variable ::library exists before executing [package require snit], then the global library will be set, not a namespace variable. The package will then fail to load:
$ tclsh8.5
% set library "of congress"
of congress
% package require snit
can't read "::snit::library": no such variable
% unset library
% package require snit
2.3.1
%
The code should read:
namespace eval ::snit {
variable library [file dirname [info script]]
}
|