summaryrefslogtreecommitdiffstats
path: root/library/tm.tcl
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)
commit48ac4215cf78865b39eadc4341f8c59def82aa12 (patch)
tree3d2539acd21ef32e0c41a1cb3f4b718e560868ff /library/tm.tcl
parent5eeef96ee9e6fbb573a438338662fea9ca7c0efd (diff)
downloadtcl-48ac4215cf78865b39eadc4341f8c59def82aa12.zip
tcl-48ac4215cf78865b39eadc4341f8c59def82aa12.tar.gz
tcl-48ac4215cf78865b39eadc4341f8c59def82aa12.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/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} {