Skip to content

Commit

Permalink
Use $::tcl_platform(pathSeparator) in stead of constructiong $sep
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 15, 2024
1 parent fe4b5d7 commit b0e6078
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions library/tm.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -326,18 +326,13 @@ proc ::tcl::tm::Defaults {} {
[file join [file dirname [file dirname $exe]] lib] \
]

if {$tcl_platform(platform) eq "windows"} {
set sep ";"
} else {
set sep ":"
}
for {set n $minor} {$n >= 0} {incr n -1} {
foreach ev [::list \
TCL${major}.${n}_TM_PATH \
TCL${major}_${n}_TM_PATH \
] {
if {![info exists env($ev)]} continue
foreach p [split $env($ev) $sep] {
foreach p [split $env($ev) $::tcl_platform(pathSeparator)] {
path add $p
}
}
Expand Down

0 comments on commit b0e6078

Please sign in to comment.