Move the setting of data_path to fix #unfiledbug
authorMatthew Wild <mwild1@gmail.com>
Sat, 06 Dec 2008 19:50:37 +0000
changeset 576 c8442d9f02a5
parent 575 428c951d0a33
child 577 22f54a04471f
Move the setting of data_path to fix #unfiledbug
prosody
--- 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)