# HG changeset patch # User Matthew Wild # Date 1250782232 -3600 # Node ID cbdc7bf61e0f9ec52cb71ab100446ffa9cae37a8 # Parent fb3137652ea67cc879ac997aa0f17e396de6369e# Parent 85518cb866ddc1cc27b5f83189bf6957f5479407 Merge with 0.5 diff -r fb3137652ea6 -r cbdc7bf61e0f tools/ejabberd2prosody.lua --- a/tools/ejabberd2prosody.lua Thu Aug 20 13:57:50 2009 +0100 +++ b/tools/ejabberd2prosody.lua Thu Aug 20 16:30:32 2009 +0100 @@ -9,9 +9,14 @@ +package.path = package.path ..";../?.lua"; + +if arg[0]:match("^./") then + package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua"); +end + require "erlparse"; -package.path = package.path ..";../?.lua"; local serialize = require "util.serialization".serialize; local st = require "util.stanza"; package.loaded["util.logger"] = {init = function() return function() end; end}