# HG changeset patch # User Matthew Wild # Date 1246493360 -3600 # Node ID 81e01809de544036a06fc0bf45aa7d959feedb8c # Parent cc9b6ef4196609d3af42cfd07459e28a3f9fe8dd prosody: Add fallbacks/ to path diff -r cc9b6ef41966 -r 81e01809de54 prosody --- a/prosody Thu Jul 02 00:25:14 2009 +0100 +++ b/prosody Thu Jul 02 01:09:20 2009 +0100 @@ -17,10 +17,13 @@ -- -- -- -- -- -- -- ---- -- -- -- -- -- -- -- -- 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"));