summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-09-12 19:12:56 (GMT)
committersebres <sebres@users.sourceforge.net>2019-09-12 19:12:56 (GMT)
commit77286202dda7f636e31cc4623108de8b7471c25b (patch)
tree43f4906b4b2c8199071fa27df3016a4d3aa444e9 /library
parenta9c3a55803118f3a310d26507bc61ea632bedea6 (diff)
downloadtcl-77286202dda7f636e31cc4623108de8b7471c25b.zip
tcl-77286202dda7f636e31cc4623108de8b7471c25b.tar.gz
tcl-77286202dda7f636e31cc4623108de8b7471c25b.tar.bz2
windows: eliminate overwriting of WINDIR env-variable in makefiles (used WIN_DIR now similar to "makefile.in");
init.tcl: windows helper prefer SystemRoot if available.
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl
index aaf148b..eb6b04e 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -680,7 +680,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]} {