diff options
author | Scott Lystig Fritchie <slfritchie@snookles.com> | 2011-08-23 14:22:04 -0500 |
---|---|---|
committer | Scott Lystig Fritchie <slfritchie@snookles.com> | 2011-08-23 14:22:04 -0500 |
commit | b674ea19a417722b1d6e1ee763837aca4c82608c (patch) | |
tree | 482025104fd10b45189ae812afb141ae6d12c1b1 /src | |
parent | f79290dc9c1bb4259d1471a35438a83cfcce48da (diff) |
Portability via filename:join/1
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_eunit.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index cf73e65..f9f5da1 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -528,8 +528,9 @@ kill_extras(Pids) -> reconstruct_app_env_vars([App|Apps]) -> CmdLine0 = proplists:get_value(App, init:get_arguments(), []), CmdVars = [{list_to_atom(K), list_to_atom(V)} || {K, V} <- CmdLine0], - AppFile = (catch code:lib_dir(App) ++ - "/ebin/" ++ atom_to_list(App) ++ ".app"), + AppFile = (catch filename:join([code:lib_dir(App), + "ebin", + atom_to_list(App) ++ ".app"])), AppVars = case file:consult(AppFile) of {ok, [{application, App, Ps}]} -> proplists:get_value(env, Ps, []); |