设置require的搜索路径

package.path = package.path .. ";G:/luafiles/?.lua" --lua文件搜索路径

package.cpath = package.cpath .. "G:/dllfiles/?.dll" --dll文件搜索路径

 

posted @ 2022-03-09 23:40  yanghui01  阅读(77)  评论(0编辑  收藏  举报