diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-11-24 09:00:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-11-24 09:00:27 (GMT) |
commit | 48ac4215cf78865b39eadc4341f8c59def82aa12 (patch) | |
tree | 3d2539acd21ef32e0c41a1cb3f4b718e560868ff /library/tm.tcl | |
parent | 5eeef96ee9e6fbb573a438338662fea9ca7c0efd (diff) | |
download | tcl-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.tcl | 2 |
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} { |