|
2001-08-27
| ||
| 08:08 | • Closed ticket [219295ffff]: Search one level more subdirectory in lib plus 7... artifact: 053a3a16ef user: dgp | |
|
2001-04-04
| ||
| 04:47 | • Ticket [219295ffff]: 1 change artifact: 84469b2cce user: dgp | |
|
2001-02-08
| ||
| 13:20 | • Ticket [219295ffff]: 2 changes artifact: 59ec906fab user: dgp | |
|
2000-10-26
| ||
| 05:10 | • New ticket [219295ffff]. artifact: f36a7f3499 user: nobody | |
Search one level more subdirectory in lib
Closed / Rejected219295ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:16
OriginalBugID: 2529 RFE
Version: 8.1
SubmitDate: '1999-08-12'
LastModified: '1999-10-21'
Severity: MED
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Other
Machine: NA
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Name:
Chang LI
ReproducibleScript:
Tcl can not automatically search the extensions of one level more
subdirectory under the lib directory. Example:
lib\name\version
PatchFiles:
patch in the init.tcl file:
The init.tcl is located in the lib\tcl8.1, add the proc in the header,
#
# this is a recursive program to make automatically
search
# subdirectory possible.
#
proc AppendFolder {start} {
set cur [pwd]
if {[catch {cd $start} err]} {
puts stderr $err
return
}
foreach f [glob -nocomplain *] {
if [file isdirectory $f] {
set d [file join $start $f]
lappend ::auto_path $d
AppendFolder $d
}
}
cd $cur
}
...
# add following command here
AppendFolder [file dirname [file join [pwd] [info
library]]]
# Setup the unknown package handler
package unknown tclPkgUnknown
dgp Ticket [219295ffff]: 2 changes
[History diff]2001-02-08 13:20:13
dgp Ticket [219295ffff]: 1 change
[History diff]2001-04-04 04:47:24
dgpplain2001-08-27 08:08:58
Logged In: YES user_id=80530 The desired behavior can be easily achieved by using [package unknown] to assign another command to search for the pkgIndex.tcl files. No need for any core changes.
Log in (anonymous is fine) to add a comment.