Software /
code /
prosody
Changeset
576:c8442d9f02a5
Move the setting of data_path to fix #unfiledbug
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 19:50:37 +0000 |
parents | 575:428c951d0a33 |
children | 577:22f54a04471f |
files | prosody |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)