diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-02 01:09:20 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-02 01:09:20 +0100 |
commit | dab398fd1ee4c93b63dd0390401b62b5017f4c3f (patch) | |
tree | 866444e19298040dc9d27d468173b3f4d88e8687 /prosody | |
parent | 7ba8dae5df4977706037602119193875b350d6b9 (diff) | |
download | prosody-dab398fd1ee4c93b63dd0390401b62b5017f4c3f.tar.gz prosody-dab398fd1ee4c93b63dd0390401b62b5017f4c3f.zip |
prosody: Add fallbacks/ to path
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -17,10 +17,13 @@ CFG_DATADIR=os.getenv("PROSODY_DATADIR"); -- -- -- -- -- -- -- ---- -- -- -- -- -- -- -- -- if CFG_SOURCEDIR then - package.path = CFG_SOURCEDIR.."/?.lua;"..package.path - package.cpath = CFG_SOURCEDIR.."/?.so;"..package.cpath + package.path = CFG_SOURCEDIR.."/?.lua;"..package.path; + package.cpath = CFG_SOURCEDIR.."/?.so;"..package.cpath; end +package.path = package.path..";"..(CFG_SOURCEDIR or ".").."/fallbacks/?.lua"; +package.cpath = package.cpath..";"..(CFG_SOURCEDIR or ".").."/fallbacks/?.so"; + if CFG_DATADIR then if os.getenv("HOME") then CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME")); |