getScriptPath function

Get the path of the calling script