# Tcl package index file, version 1.1 proc LoadToltcl { version dir } { global tcl_platform set _version [ string map [ list "." "" ] $version ] if {[info exist ::env(USE_TOLTCL_$_version)]} { puts "requested to load Toltcl from $::env(USE_TOLTCL_$_version)" load $::env(USE_TOLTCL_$_version) } else { set suffix [info sharedlibextension] if {$tcl_platform(platform) eq "unix"} { set name libtoltcl${version}[info sharedlibextension] } else { set name toltcl.dll } load [file join $dir $name] Toltcl } } package ifneeded Toltcl @PACKAGE_VERSION@ \ [ string map [list %d $dir] { LoadToltcl @PACKAGE_VERSION@ {%d} source [ file join {%d} toltcl.tcl ] } ]