diff options
-rw-r--r-- | src/rebar_core.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 3172d64..44e434d 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -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; + relative -> [filename:join([Root, A]) || A <- Apps] + end, expand_lib_dirs(Rest, Root, Acc ++ FqApps). |