summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/init.tcl12
1 files changed, 5 insertions, 7 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 65e18f7..c5afbe5 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -3,7 +3,7 @@
# Default system startup file for Tcl-based applications. Defines
# "unknown" procedure and auto-load facilities.
#
-# RCS: @(#) $Id: init.tcl,v 1.34 1999/10/05 22:45:49 hobbs Exp $
+# RCS: @(#) $Id: init.tcl,v 1.35 1999/11/10 02:52:10 hobbs Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -52,12 +52,10 @@ if {[string compare [info library] {}]} {
}
}
}
-foreach __dir [list [file dirname [info nameofexecutable]] \
- [file join [file dirname [file dirname \
- [info nameofexecutable]]] lib]] {
- if {[lsearch -exact $auto_path $__dir] < 0} {
- lappend auto_path $__dir
- }
+set __dir [file join [file dirname [file dirname \
+ [info nameofexecutable]]] lib]
+if {[lsearch -exact $auto_path $__dir] < 0} {
+ lappend auto_path $__dir
}
if {[info exist tcl_pkgPath]} {
foreach __dir $tcl_pkgPath {