summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-11-24 09:00:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-11-24 09:00:27 (GMT)
commit99ba912cebb5eee0ef3ab63cb2019ef586057563 (patch)
tree3d2539acd21ef32e0c41a1cb3f4b718e560868ff /library
parent9782f13f464f639524e29a072323586a2b8ec22a (diff)
downloadtcl-99ba912cebb5eee0ef3ab63cb2019ef586057563.zip
tcl-99ba912cebb5eee0ef3ab63cb2019ef586057563.tar.gz
tcl-99ba912cebb5eee0ef3ab63cb2019ef586057563.tar.bz2
Make ::tcl::tm::roots work for alpha/beta Tcl releases. (backported from "novem", will be needed anyway for whatever future developments)
Diffstat (limited to 'library')
-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} {