Software /
code /
prosody
Comparison
tools/ejabberdsql2prosody.lua @ 5696:9fba74a28e0c
package{,c}path fixes for migration tools
author | Vadim Misbakh-Soloviov <mva@mva.name> |
---|---|
date | Fri, 14 Jun 2013 15:15:05 +0700 |
parent | 5215:b3d837c1ccf1 |
child | 5776:bd0ff8ae98a8 |
child | 5991:a4b4b152a7d6 |
comparison
equal
deleted
inserted
replaced
5695:460070c84eae | 5696:9fba74a28e0c |
---|---|
8 -- | 8 -- |
9 | 9 |
10 prosody = {}; | 10 prosody = {}; |
11 | 11 |
12 package.path = package.path ..";../?.lua"; | 12 package.path = package.path ..";../?.lua"; |
13 | |
14 local my_name = arg[0]; | |
15 if my_name:match("[/\\]") then | |
16 package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua"); | |
17 package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so"); | |
18 end | |
19 | |
20 | |
13 local serialize = require "util.serialization".serialize; | 21 local serialize = require "util.serialization".serialize; |
14 local st = require "util.stanza"; | 22 local st = require "util.stanza"; |
15 local parse_xml = require "util.xml".parse; | 23 local parse_xml = require "util.xml".parse; |
16 package.loaded["util.logger"] = {init = function() return function() end; end} | 24 package.loaded["util.logger"] = {init = function() return function() end; end} |
17 local dm = require "util.datamanager" | 25 local dm = require "util.datamanager" |