Changeset

1727:cbdc7bf61e0f

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Thu, 20 Aug 2009 16:30:32 +0100
parents 1725:fb3137652ea6 (current diff) 1726:85518cb866dd (diff)
children 1728:cb4c94b47d53 1758:5acbf4318715
files
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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}