Software /
code /
prosody
Diff
util/datamanager.lua @ 4093:36555949bd16
util.datamanager: Use prosody.paths.data as the initial value for data_path
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Jan 2011 11:55:19 +0000 |
parent | 3845:4860853fc97b |
child | 4108:e3e3aa286334 |
line wrap: on
line diff
--- 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 -------------