diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-08-06 19:00:18 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-08-06 19:00:18 +0200 |
commit | 491d52298e270c30901d2cf6e218e8cb0247f068 (patch) | |
tree | 603364dae1cceb480672bfcf806cc4c4a2f0cfbc /src/rebar_shell.erl | |
parent | e2492eb37f2b240bc21b414269f96e44217b5de1 (diff) |
Re-use rebar_utils:ebin_dir()
Diffstat (limited to 'src/rebar_shell.erl')
-rw-r--r-- | src/rebar_shell.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rebar_shell.erl b/src/rebar_shell.erl index 0426f24..2dbf4a0 100644 --- a/src/rebar_shell.erl +++ b/src/rebar_shell.erl @@ -38,7 +38,7 @@ shell(_Config, _AppFile) -> %% for the "top level" directory case is_deps_dir(rebar_utils:get_cwd()) of false -> - true = code:add_pathz(ebin_dir()), + true = code:add_pathz(rebar_utils:ebin_dir()), user_drv:start(), %% this call never returns (until user quits shell) shell:server(false, false); @@ -47,9 +47,6 @@ shell(_Config, _AppFile) -> end, ok. -ebin_dir() -> - filename:join(rebar_utils:get_cwd(), "ebin"). - is_deps_dir(Dir) -> case lists:reverse(filename:split(Dir)) of [_, "deps" | _] -> |