# HG changeset patch # User Matthew Wild # Date 1228593037 0 # Node ID c8442d9f02a56d9cb073bfa29993cb906c4076cd # Parent 428c951d0a3375074973f1a907dc4c45ad406e8b Move the setting of data_path to fix #unfiledbug diff -r 428c951d0a33 -r c8442d9f02a5 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)