additional fix for erlparse loading in ejabberd2prosody.lua

This commit is contained in:
Vadim Misbakh-Soloviov 2013-06-14 15:43:35 +07:00
parent ceff8cb313
commit c633ac92a9

View file

@ -14,6 +14,7 @@ package.path = package.path ..";../?.lua";
local my_name = arg[0];
if my_name:match("[/\\]") then
package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua");
package.path = package.path..";"..my_name:gsub("[^/\\]+$", "?.lua");
package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so");
end