diff options
-rwxr-xr-x | prosody | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |