if {![info exists tcl_platform(threaded)]} return
if {!$tcl_platform(threaded)} {return}
package ifneeded foo 1.1 {load libfoo1.1t.so}And, for non-threaded variant, use this index script if {[info exists tcl_platform(threaded)] && $tcl_platform(threaded)} return
package ifneeded foo 1.1 {load libfoo1.1t.so}How to identify the variantSee TIP 59See package BoF: PACKAGE ABOUT - metadata*** Well, an app programmer can define a package unknown hook to do exactly what they want, but that implies knowledge of installation environment. This is the wrapped application approach, where you're not really using packages because you're not pulling them from the local environment.

