Menu

#1087 Wrong path added to auto_path

open
nobody
None
5
2008-12-01
2008-12-01
John Seal
No

If tcllib.kit (the one from http://www.equi4.com/pub/om/sdarchive/\) is sourced after twapi-1.1.5.kit, a wrong path gets added to auto_path and "package require tcllib" fails. If tcllib.kit is sourced alone, or before twapi-1.1.5.kit, it adds two entries to auto_path:

(ORmaint) 1 % set auto_path
<several paths>
(ORmaint) 2 % source tcllib.kit
(ORmaint) 3 % set auto_path
<same paths plus> <path to>/tcllib.kit/lib <path to>/tcllib.kit/tcllib

This is with an 8.5.2 tclkit for Windows. But if sourced after twapi-1.1.5.kit, the second entry gets twapi's name instead of tcllib's:

(ORmaint) 1 % set auto_path
<several paths>
(ORmaint) 2 % source twapi-1.1.5.kit
(ORmaint) 3 % set auto_path
<same paths plus> <path to>/twapi-1.1.5.kit/lib
(ORmaint) 4 % source tcllib.kit
(ORmaint) 5 % set auto_path
<same paths plus> <path to>/twapi-1.1.5.kit/lib <path to>/tcllib.kit/lib <path to>/twapi-1.1.5.kit/tcllib

When I asked about this on c.l.t, Michael Schlenker suggested that it might be a bug in the tcllib kit packaging and asked me to file this bug report.

Discussion