Add dynamic .script support for overlay vars file

This commit is contained in:
Dmitriy Kargapolov 2012-05-14 13:54:04 -04:00 committed by Tuncer Ayaz
parent 7889cbe523
commit 9c7259d8a2

View file

@ -149,7 +149,7 @@ overlay_vars(Config, Vars0, ReltoolConfig) ->
load_vars_file(undefined) -> load_vars_file(undefined) ->
dict:new(); dict:new();
load_vars_file(File) -> load_vars_file(File) ->
case file:consult(File) of case rebar_config:consult_file(File) of
{ok, Terms} -> {ok, Terms} ->
dict:from_list(Terms); dict:from_list(Terms);
{error, Reason} -> {error, Reason} ->