Changeset

1455:81e01809de54

prosody: Add fallbacks/ to path
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Jul 2009 01:09:20 +0100
parents 1454:cc9b6ef41966
children 1456:3135cf40110d
files prosody
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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"));