Software /
code /
prosody
Comparison
tools/ejabberd2prosody.lua @ 5697:956df0f1cb70
additional fix for erlparse loading in ejabberd2prosody.lua
author | Vadim Misbakh-Soloviov <mva@mva.name> |
---|---|
date | Fri, 14 Jun 2013 15:43:35 +0700 |
parent | 5696:9fba74a28e0c |
child | 5776:bd0ff8ae98a8 |
child | 5992:72157e928c23 |
comparison
equal
deleted
inserted
replaced
5696:9fba74a28e0c | 5697:956df0f1cb70 |
---|---|
12 package.path = package.path ..";../?.lua"; | 12 package.path = package.path ..";../?.lua"; |
13 | 13 |
14 local my_name = arg[0]; | 14 local my_name = arg[0]; |
15 if my_name:match("[/\\]") then | 15 if my_name:match("[/\\]") then |
16 package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua"); | 16 package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua"); |
17 package.path = package.path..";"..my_name:gsub("[^/\\]+$", "?.lua"); | |
17 package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so"); | 18 package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so"); |
18 end | 19 end |
19 | 20 |
20 local erlparse = require "erlparse"; | 21 local erlparse = require "erlparse"; |
21 | 22 |