Skip to content

Commit 319a940

Browse files
committed
Use code:lib_dir/1 to avoid a compilation warning on OTP 27
1 parent 5a87f52 commit 319a940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tr.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ lookup(Index) when is_integer(Index) ->
485485
%% @doc Returns all module names for an application.
486486
-spec app_modules(atom()) -> [module()].
487487
app_modules(AppName) ->
488-
Path = code:lib_dir(AppName, ebin),
488+
Path = filename:join(code:lib_dir(AppName), ebin),
489489
{ok, FileNames} = file:list_dir(Path),
490490
BeamFileNames = lists:filter(fun(Name) -> filename:extension(Name) =:= ".beam" end, FileNames),
491491
[list_to_atom(filename:rootname(Name)) || Name <- BeamFileNames].

0 commit comments

Comments
 (0)