diff options
author | sebres <sebres@users.sourceforge.net> | 2019-09-12 19:12:56 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-09-12 19:12:56 (GMT) |
commit | 77286202dda7f636e31cc4623108de8b7471c25b (patch) | |
tree | 43f4906b4b2c8199071fa27df3016a4d3aa444e9 /library | |
parent | a9c3a55803118f3a310d26507bc61ea632bedea6 (diff) | |
download | tcl-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.tcl | 4 |
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]} { |