summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-02-06 18:00:24 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-02-06 18:00:24 -0600
commit038d721f90952f0eabda6b4e5333a0ec35a255dd (patch)
treed3532d3ae8c9efae03b9ef2e384c7580561b3f92 /src
parent62581cfcc33b5f6787851d65b97a8fe8c086b53d (diff)
parent29039bece6f1733099eb6b4eea67f47e37bc24e0 (diff)
Merge pull request #129 from kellymclaughlin/add-pkgs-to-code-path
Add packages to code path after installation
Diffstat (limited to 'src')
-rw-r--r--src/rebar_fetch.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebar_fetch.erl b/src/rebar_fetch.erl
index eac2d02..088a49a 100644
--- a/src/rebar_fetch.erl
+++ b/src/rebar_fetch.erl
@@ -46,6 +46,7 @@ download_source(AppDir, Source) ->
code:del_path(filename:absname(filename:join(AppDir1, "ebin"))),
ec_file:remove(filename:absname(AppDir1), [recursive]),
ok = ec_file:copy(FromDir, filename:absname(AppDir1), [recursive]),
+ true = code:add_patha(filename:join(AppDir1, "ebin")),
true
end
catch