summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-11-10 02:52:10 (GMT)
committerhobbs <hobbs>1999-11-10 02:52:10 (GMT)
commitca84f4e6ba0a386aac0b6e1d9051edbcfb0e2aff (patch)
tree5e00f94d65fccc5cc41e8c25876a3005286e65b3 /library/init.tcl
parent92091cf22933ea53ced7f0ec22fdc6d1d33077aa (diff)
downloadtcl-ca84f4e6ba0a386aac0b6e1d9051edbcfb0e2aff.zip
tcl-ca84f4e6ba0a386aac0b6e1d9051edbcfb0e2aff.tar.gz
tcl-ca84f4e6ba0a386aac0b6e1d9051edbcfb0e2aff.tar.bz2
* library/init.tcl: removed the installed binary directory from
the auto_path variable
Diffstat (limited to 'library/init.tcl')
-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 {