Is there a possibility to get the full path of the currently executing TCL script?
In PHP it would be: __FILE__
Exit handlers are invoked to cleanup the application's state before ending the execution of Tcl code. Invoke Tcl_Exit to end a Tcl application and to exit from this process. This procedure is invoked by the exit command, and can be invoked anyplace else to terminate the application.
Tcl8. 6.12/Tk8. 6.12 Documentation > Tcl Commands > pwd Returns the absolute path name of the current working directory.
Tcl supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It is commonly used embedded into C applications, for rapid prototyping, scripted applications, GUIs, and testing.
Depending on what you mean by "currently executing TCL script", you might actually seek info script
, or possibly even info nameofexecutable
or something more esoteric.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With