函数名

getWorkPath()

函数介绍

方法名称:获取当前脚本的工作目录,该目录有可执行权限

返回值:返回目录

函数例子

local path = getWorkPath()
print("当前工作目录:"..path)