Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullpath of current TCL script

Tags:

tcl

Is there a possibility to get the full path of the currently executing TCL script?

In PHP it would be: __FILE__

like image 219
dmorlock Avatar asked Oct 01 '10 11:10

dmorlock


People also ask

How do I end a Tcl script?

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.

How can I get PWD in Tcl?

Tcl8. 6.12/Tk8. 6.12 Documentation > Tcl Commands > pwd Returns the absolute path name of the current working directory.

What is the use of Tcl script?

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.


1 Answers

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.

like image 198
Cameron Laird Avatar answered Oct 01 '22 15:10

Cameron Laird