Changeset

5990:bcf895ed1b65

additional fix for erlparse loading in ejabberd2prosody.lua
author Vadim Misbakh-Soloviov <mva@mva.name>
date Fri, 14 Jun 2013 15:43:35 +0700
parents 5989:5aaddafe0beb
children 5991:a4b4b152a7d6
files tools/ejabberd2prosody.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/ejabberd2prosody.lua	Fri Jun 14 15:15:05 2013 +0700
+++ b/tools/ejabberd2prosody.lua	Fri Jun 14 15:43:35 2013 +0700
@@ -14,6 +14,7 @@
 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