Merge pull request #350 from flygoast/master

Used current working home as base directory to config relative path.
This commit is contained in:
Evgeny Khramtsov 2014-11-25 14:24:37 +03:00
commit 00dfcc1e10
1 changed files with 2 additions and 3 deletions

View File

@ -210,9 +210,8 @@ get_absolute_path(File) ->
absolute -> absolute ->
File; File;
relative -> relative ->
Config_path = get_ejabberd_config_path(), {ok, Dir} = file:get_cwd(),
Config_dir = filename:dirname(Config_path), filename:absname_join(Dir, File)
filename:absname_join(Config_dir, File)
end. end.