# Wishrc startup for ToolScript (xcircuit)
#
# load /usr/local/share/xcircuit-3.0/xcircuit.so

set path [lindex [array get env "XCIRCUIT_LIB_DIR"] 1]
if {[catch [load ${path}/xcircuit.so]]} {load ${path}/tcl/xcircuit.so}

package require Xcircuit

set argv [string range $argv 1 [string length $argv]]
if {[string length $argv] == 0} {
   xcircuit::start
} else {
   xcircuit::start $argv
}

# Xcircuit start function drops back to interpreter after initialization & setup
