Use correct value for file:script SCRIPT binding

This commit is contained in:
Ulf Wiger 2012-04-17 20:36:03 +02:00 committed by Tuncer Ayaz
parent 47716a7ed8
commit afffb4895a

View file

@ -165,7 +165,7 @@ get_env(Config, Mod) ->
consult_and_eval(File, Script) ->
?DEBUG("Evaluating config script ~p~n", [Script]),
ConfigData = try_consult(File),
file:script(Script, bs([{'CONFIG', ConfigData}, {'SCRIPT', File}])).
file:script(Script, bs([{'CONFIG', ConfigData}, {'SCRIPT', Script}])).
remove_script_ext(F) ->