Support dialyzer plt paths having "~/" as a prefix

e.g. {dialyzer_opts, [{plt, "~/.dialyzer_plt.R14B"}]}.
This commit is contained in:
Joseph Wayne Norton 2010-11-23 00:03:45 +09:00 committed by Tuncer Ayaz
parent fe664e8c50
commit e36783112d

View file

@ -193,6 +193,8 @@ existing_plt_path(Config, File) ->
?ABORT("No PLT found~n", []) ?ABORT("No PLT found~n", [])
end end
end; end;
[$~|[$/|Plt]] ->
filename:join(Home,Plt);
Plt -> Plt ->
Plt Plt
end. end.