+2003-11-18 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (::tkcon::InitSlave): remove tk_library from the
+ seeded auto_path. Do not add OPT(library) to auto_path if it is "".
+
2003-11-04 Jeff Hobbs <jeffh@ActiveState.com>
* tkcon.tcl (::tkcon::EvalSocketClosed): use tk_messageBox instead
if {[info exists env(TK_CON_LIBRARY)]} {
lappend ::auto_path $env(TK_CON_LIBRARY)
- } else {
+ } elseif {$OPT(library) != ""} {
lappend ::auto_path $OPT(library)
}
variable OPT
variable COLOR
variable PRIV
- global argv0 tcl_interactive tcl_library env auto_path
+ global argv0 tcl_interactive tcl_library env auto_path tk_library
if {[string match {} $slave]} {
return -code error "Don't init the master interpreter, goofball"
$slave alias load SafeLoad $slave
$slave alias open SafeOpen $slave
$slave alias file file
- interp eval $slave [dump var -nocomplain tcl_library auto_path env]
+ interp eval $slave \
+ [list set auto_path [lremove $auto_path $tk_library]]
+ interp eval $slave [dump var -nocomplain tcl_library env]
interp eval $slave { catch {source [file join $tcl_library init.tcl]} }
interp eval $slave { catch unknown }
}
}
if {[info exists argv0]} {interp eval $slave [list set argv0 $argv0]}
interp eval $slave set tcl_interactive $tcl_interactive \; \
- set auto_path [list $auto_path] \; \
+ set auto_path [list [lremove $auto_path $tk_library]] \; \
set argc [llength $args] \; \
set argv [list $args] \; {
if {![llength [info command bgerror]]} {