Software /
code /
prosody
Comparison
tools/ejabberd2prosody.lua @ 5310:bc60cad47397
ejabberd2prosody.lua: Don't make assumptions about file name.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 25 Jan 2013 00:36:17 +0100 |
parent | 5309:2da869d95271 |
child | 5696:9fba74a28e0c |
comparison
equal
deleted
inserted
replaced
5309:2da869d95271 | 5310:bc60cad47397 |
---|---|
9 | 9 |
10 | 10 |
11 | 11 |
12 package.path = package.path ..";../?.lua"; | 12 package.path = package.path ..";../?.lua"; |
13 | 13 |
14 if arg[0]:match("^./") then | 14 if arg[0]:match("[/\\]") then |
15 package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua"); | 15 package.path = package.path .. ";"..arg[0]:gsub("[^/\\]*$", "?.lua"); |
16 end | 16 end |
17 | 17 |
18 local erlparse = require "erlparse"; | 18 local erlparse = require "erlparse"; |
19 | 19 |
20 prosody = {}; | 20 prosody = {}; |