fix require path

This commit is contained in:
2023-05-08 00:58:30 +08:00
parent 02c181493b
commit d68f3a714e
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -1,7 +1,5 @@
-- 指定模块引用目录,否则无法加载同目录下的其他文件
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local _M = {}
function _M.upyun_download(httpc, cjson, Upt, pl, uri)