From ca84f4e6ba0a386aac0b6e1d9051edbcfb0e2aff Mon Sep 17 00:00:00 2001 From: hobbs Date: Wed, 10 Nov 1999 02:52:10 +0000 Subject: * library/init.tcl: removed the installed binary directory from the auto_path variable --- library/init.tcl | 12 +++++------- 1 file 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 { -- cgit v0.12