Is there a possibility to get the full path of the currently executing TCL script?
In PHP it would be: __FILE__
Is there a possibility to get the full path of the currently executing TCL script?
In PHP it would be: __FILE__
seconds after I've posted my question ... lindex $argv 0
is a good starting point ;-)
Depending on what you mean by "currently executing TCL script", you might actually seek info script
, or possibly even info namefexecutable
or something more esoteric.
You can use [file normalize] to get the fully normalized name, too.
file normalize $argv0
file normalize [info nameofexecutable]