aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody7
1 files changed, 4 insertions, 3 deletions
diff --git a/prosody b/prosody
index 584af214..76b8162d 100755
--- a/prosody
+++ b/prosody
@@ -68,8 +68,6 @@ do
end
end
-require "util.datamanager".set_data_path(data_path);
-
local server = require "net.server"
require "util.dependencies"
@@ -78,7 +76,6 @@ require "util.dependencies"
sessions = {};
hosts = {};
-
-- Load and initialise core modules --
require "util.import"
@@ -104,9 +101,13 @@ require "util.jid"
------------------------------------------------------------------------
+
------------- 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)