Get full pathname to the file

set ScriptDir [file normalize [file dirname [info script]]]

原文地址:https://www.cnblogs.com/greencolor/p/2179952.html