summaryrefslogtreecommitdiffstats
path: root/library/tm.tcl
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2015-12-11 22:27:30 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2015-12-11 22:27:30 (GMT)
commita1afbb92c4ef37e6c164b74a889f319c8fd343d6 (patch)
tree2196fe9bf6d1f586e239ffe46e19ee54ada2f683 /library/tm.tcl
parent215f237f9dcb0bedcb02d73ee24a6ad04715cde7 (diff)
parentae04607901c12a74a8fc87f174e461640a4004d6 (diff)
downloadtcl-empty_bodies.zip
tcl-empty_bodies.tar.gz
tcl-empty_bodies.tar.bz2
merge trunkempty_bodies
Diffstat (limited to 'library/tm.tcl')
-rw-r--r--library/tm.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/tm.tcl b/library/tm.tcl
index 55efda6..66c56a1 100644
--- a/library/tm.tcl
+++ b/library/tm.tcl
@@ -354,7 +354,7 @@ proc ::tcl::tm::Defaults {} {
# Calls 'path add' to paths to the list of module search paths.
proc ::tcl::tm::roots {paths} {
- lassign [split [package present Tcl] .] major minor
+ regexp {^(\d+)\.(\d+)} [package present Tcl] - major minor
foreach pa $paths {
set p [file join $pa tcl$major]
for {set n $minor} {$n >= 0} {incr n -1} {