From 9dfec19c67fc72f9ff9abbef95bcfd74a4471056 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 11 Sep 2015 21:15:12 -0500 Subject: escript should append the ebin dirs to the code path not prepend --- src/rebar_prv_escriptize.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_prv_escriptize.erl b/src/rebar_prv_escriptize.erl index 3cdc9bf..32f5508 100644 --- a/src/rebar_prv_escriptize.erl +++ b/src/rebar_prv_escriptize.erl @@ -107,7 +107,7 @@ escriptize(State0, App) -> ExtraFiles = usort(InclBeams ++ InclExtra), Files = get_nonempty(EbinFiles ++ ExtraFiles), - DefaultEmuArgs = ?FMT("%%! -escript main ~s -pa ~s/~s/ebin\n", + DefaultEmuArgs = ?FMT("%%! -escript main ~s -pz ~s/~s/ebin\n", [AppNameStr, AppNameStr, AppNameStr]), EscriptSections = [ {shebang, -- cgit v1.1