# HG changeset patch # User Matthew Wild # Date 1294401319 0 # Node ID 36555949bd16ba591f1003e789acee496e758135 # Parent c53610fdab621280e68eb91d1f68904a00b51a81 util.datamanager: Use prosody.paths.data as the initial value for data_path diff -r c53610fdab62 -r 36555949bd16 util/datamanager.lua --- a/util/datamanager.lua Fri Jan 07 05:11:00 2011 +0000 +++ b/util/datamanager.lua Fri Jan 07 11:55:19 2011 +0000 @@ -22,6 +22,7 @@ local append = require "util.serialization".append; local path_separator = "/"; if os.getenv("WINDIR") then path_separator = "\\" end local lfs = require "lfs"; +local prosody = prosody; local raw_mkdir; if prosody.platform == "posix" then @@ -56,7 +57,7 @@ return path; end -local data_path = "data"; +local data_path = prosody.paths.data; local callbacks = {}; ------- API -------------