diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-06-29 14:45:47 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-06-29 14:45:47 +0100 |
commit | 2489f372db5f8d584c537ba31844cdaf8fd19b10 (patch) | |
tree | 27741db74d498be76001287c8a4e6a9076bb5a27 /tools/jabberd14sql2prosody.lua | |
parent | 5adcad1a43d110e0458b38c42b0a21a70eb5336e (diff) | |
parent | 82bd1a5967eba247d95ddde8d8d77197b2bada91 (diff) | |
download | prosody-2489f372db5f8d584c537ba31844cdaf8fd19b10.tar.gz prosody-2489f372db5f8d584c537ba31844cdaf8fd19b10.zip |
Merge
Diffstat (limited to 'tools/jabberd14sql2prosody.lua')
-rw-r--r-- | tools/jabberd14sql2prosody.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/jabberd14sql2prosody.lua b/tools/jabberd14sql2prosody.lua index b85d2c20..d6a6753f 100644 --- a/tools/jabberd14sql2prosody.lua +++ b/tools/jabberd14sql2prosody.lua @@ -428,7 +428,14 @@ end end -- import modules -package.path = [[C:\Documents and Settings\Waqas\Desktop\mercurial\prosody-hg\?.lua;]]..package.path; +package.path = package.path.."..\?.lua;"; + +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 = { }; |