summaryrefslogtreecommitdiff
path: root/src/rebar_otp_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_otp_app.erl')
-rw-r--r--src/rebar_otp_app.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rebar_otp_app.erl b/src/rebar_otp_app.erl
index bcc13fd..7a62081 100644
--- a/src/rebar_otp_app.erl
+++ b/src/rebar_otp_app.erl
@@ -152,6 +152,10 @@ preprocess(AppSrcFile) ->
%% Setup file .app filename and write new contents
AppFile = rebar_app_utils:app_src_to_app(AppSrcFile),
ok = file:write_file(AppFile, Spec),
+
+ %% Make certain that the ebin/ directory is available on the code path
+ code:add_path(filename:absname(filename:dirname(AppFile))),
+
AppFile;
{error, Reason} ->