I made a sloppy attempt at it, but ofcourse this is useless with different tcl version
Code: Select all
if {![regexp {.*/tcl8.4|.*/tcl8.5} [info library]]} {
putlog "ERROR: You cannot run mute.tcl without tcl version 8.4 or higher"
} else {
# execute script
I remember there was something with package require, but i can't remember what exactly.