diff options
author | Tobias Markmann <tm@ayena.de> | 2009-07-05 19:05:25 +0200 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-07-05 19:05:25 +0200 |
commit | fa97be5e4dcd83cd57c51e764f6aa2a39b9833ba (patch) | |
tree | 04f1aa322632a0221c225ee6957b5863755a3b6d /prosody | |
parent | 4ce313959b678592a5fe0ef30b6813d058de45af (diff) | |
parent | 2c3ccf56744975a5f5acbc66d2e917e056467965 (diff) | |
download | prosody-fa97be5e4dcd83cd57c51e764f6aa2a39b9833ba.tar.gz prosody-fa97be5e4dcd83cd57c51e764f6aa2a39b9833ba.zip |
Merge with main branch.
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")); |