Merge pull request #101 from jcomellas/jc-absolute-lib-dirs

Allow the use of absolute paths in the lib_dirs configuration setting
This commit is contained in:
Dave Smith 2013-06-18 15:25:53 -07:00
commit 271299a4e9

View file

@ -412,7 +412,10 @@ expand_lib_dirs([], _Root, Acc) ->
Acc;
expand_lib_dirs([Dir | Rest], Root, Acc) ->
Apps = filelib:wildcard(filename:join([Dir, "*", "ebin"])),
FqApps = [filename:join([Root, A]) || A <- Apps],
FqApps = case filename:pathtype(Dir) of
absolute -> Apps;
_ -> [filename:join([Root, A]) || A <- Apps]
end,
expand_lib_dirs(Rest, Root, Acc ++ FqApps).