diff options
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r-- | src/rebar_utils.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 1aecd2e..95981a3 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -38,7 +38,8 @@ beam_to_mod/2, beams/1, erl_to_mod/1, abort/2, - escript_foldl/3]). + escript_foldl/3, + find_executable/1]). -include("rebar.hrl"). @@ -125,6 +126,9 @@ escript_foldl(Fun, Acc, File) -> escript:foldl(Fun, Acc, File) end. +find_executable(Name) -> + "\"" ++ filename:nativename(os:find_executable(Name)) ++ "\"". + %% ==================================================================== %% Internal functions %% ==================================================================== |