diff options
author | Vadim Misbakh-Soloviov <mva@mva.name> | 2013-06-14 15:15:05 +0700 |
---|---|---|
committer | Vadim Misbakh-Soloviov <mva@mva.name> | 2013-06-14 15:15:05 +0700 |
commit | 519e70668d13940d67a97ec85254462c56a93a3a (patch) | |
tree | 2c5526c4c1e0a57a8324fe349d571e83fcc868ca /tools/openfire2prosody.lua | |
parent | 9052e8bf8faf0c5cf0d5f645cbe2abe8e6464817 (diff) | |
download | prosody-519e70668d13940d67a97ec85254462c56a93a3a.tar.gz prosody-519e70668d13940d67a97ec85254462c56a93a3a.zip |
package{,c}path fixes for migration tools
Diffstat (limited to 'tools/openfire2prosody.lua')
-rw-r--r-- | tools/openfire2prosody.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/openfire2prosody.lua b/tools/openfire2prosody.lua index bdea9a63..5ef47602 100644 --- a/tools/openfire2prosody.lua +++ b/tools/openfire2prosody.lua @@ -9,6 +9,12 @@ package.path = package.path..";../?.lua"; package.cpath = package.cpath..";../?.so"; -- needed for util.pposix used in datamanager +local my_name = arg[0]; +if my_name:match("[/\\]") then + package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua"); + package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so"); +end + -- ugly workaround for getting datamanager to work outside of prosody :( prosody = { }; prosody.platform = "unknown"; |