Attachment "577033.patch" to
ticket [577033ffff]
added by
dgp
2002-07-03 23:52:39.
Index: library/auto.tcl
===================================================================
RCS file: /cvsroot/tcl/tcl/library/auto.tcl,v
retrieving revision 1.8
diff -u -r1.8 auto.tcl
--- library/auto.tcl 27 Aug 2001 02:14:08 -0000 1.8
+++ library/auto.tcl 3 Jul 2002 16:51:26 -0000
@@ -60,7 +60,8 @@
# The C application may have hardwired a path, which we honor
- if {[info exists the_library] && [string compare $the_library {}]} {
+ set variableSet [info exists the_library]
+ if {$variableSet && [string compare $the_library {}]} {
lappend dirs $the_library
} else {
@@ -111,6 +112,9 @@
append errors "$file: $msg\n$errorInfo\n"
}
}
+ }
+ if {!$variableSet} {
+ unset the_library
}
set msg "Can't find a usable $initScript in the following directories: \n"
append msg " $dirs\n\n"