sys_curprocdir [function]

sys_curprocdir()

returns the path to the directory of the executable file the script is executed in