mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
ejabberd2prosody.lua: Don't make assumptions about file name.
This commit is contained in:
parent
f766f157e7
commit
f092adcb3c
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@
|
|||
|
||||
package.path = package.path ..";../?.lua";
|
||||
|
||||
if arg[0]:match("^./") then
|
||||
package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua");
|
||||
if arg[0]:match("[/\\]") then
|
||||
package.path = package.path .. ";"..arg[0]:gsub("[^/\\]*$", "?.lua");
|
||||
end
|
||||
|
||||
local erlparse = require "erlparse";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue