prosody

changeset 576
c8442d9f02a5
parent 573
f6555ebf84ec
child 580
9ff2c3c87065
--- a/prosody	Sat Dec 06 19:49:14 2008 +0000
+++ b/prosody	Sat Dec 06 19:50:37 2008 +0000
@@ -68,8 +68,6 @@
 	end
 end
 
-require "util.datamanager".set_data_path(data_path);
-
 local server = require "net.server"
 
 require "util.dependencies"
@@ -78,7 +76,6 @@
 sessions = {};
 hosts = {};
 
-
 -- Load and initialise core modules --
 
 require "util.import"
@@ -104,9 +101,13 @@
 
 ------------------------------------------------------------------------
 
+
 ------------- Begin code without a home ---------------------
 
 local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
+require "util.datamanager".set_data_path(data_path);
+
+
 local path_separator = "/"; if os.getenv("WINDIR") then path_separator = "\\" end
 local _mkdir = {}
 function mkdir(path)

mercurial