Fullpath of current TCL script

后端 未结 5 2239
梦如初夏
梦如初夏 2021-02-13 03:49

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

In PHP it would be: __FILE__

5条回答
  •  无人共我
    2021-02-13 04:41

    You can use [file normalize] to get the fully normalized name, too.

    file normalize $argv0
    file normalize [info nameofexecutable]
    

提交回复
热议问题