# tcl - commented line with 'tcl' as indicator this is a tcl script. A standard shebang line would also work. puts stderr "info script: [info script]" apply {{self} { set selfdir [file dirname $self] puts stderr "selfdir: $selfdir" source $selfdir/scriptinfo2 #if {[file exists $selfdir/kettle.tcl]} { ## Look for a local copy first, for when we install ourselves. #source $selfdir/kettle.tcl #} else { ## use the installed core. #package require kettle #} }} [file dirname [file normalize [info script]/__]]