summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2020-06-19 12:37:17 (GMT)
committerkjnash <k.j.nash@usa.net>2020-06-19 12:37:17 (GMT)
commit4b7534f6ab5679c6ad37ceadc11d6ac0b16d5b5c (patch)
tree1e4788149c5cf047fe29cfcaaf208fb0f1829d1d /library/init.tcl
parentf14b27d11940c7ec28136bcd04a21b6f75870ad9 (diff)
parent0a8c9a817e923652ceea7b0c797e5b15e80e0a77 (diff)
downloadtcl-4b7534f6ab5679c6ad37ceadc11d6ac0b16d5b5c.zip
tcl-4b7534f6ab5679c6ad37ceadc11d6ac0b16d5b5c.tar.gz
tcl-4b7534f6ab5679c6ad37ceadc11d6ac0b16d5b5c.tar.bz2
Merge 8.6
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl10
1 files changed, 6 insertions, 4 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 8952172..5cc0fee 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -16,7 +16,7 @@
if {[info commands package] == ""} {
error "version mismatch: library\nscripts expect Tcl version 7.5b1 or later but the loaded version is\nonly [info patchlevel]"
}
-package require -exact Tcl 8.6.9
+package require -exact Tcl 8.6.10
# Compute the auto path to use in this interpreter.
# The values on the path come from several locations:
@@ -57,13 +57,13 @@ namespace eval tcl {
if {$Dir ni $::auto_path} {
lappend ::auto_path $Dir
}
- catch {
+ if {[info exists ::tcl_pkgPath]} { catch {
foreach Dir $::tcl_pkgPath {
if {$Dir ni $::auto_path} {
lappend ::auto_path $Dir
}
}
- }
+ }}
if {![interp issafe]} {
variable Path [encoding dirs]
@@ -668,7 +668,9 @@ proc auto_execok name {
}
set path "[file dirname [info nameof]];.;"
- if {[info exists env(WINDIR)]} {
+ if {[info exists env(SystemRoot)]} {
+ set windir $env(SystemRoot)
+ } elseif {[info exists env(WINDIR)]} {
set windir $env(WINDIR)
}
if {[info exists windir]} {