We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a87f52 commit 319a940Copy full SHA for 319a940
src/tr.erl
@@ -485,7 +485,7 @@ lookup(Index) when is_integer(Index) ->
485
%% @doc Returns all module names for an application.
486
-spec app_modules(atom()) -> [module()].
487
app_modules(AppName) ->
488
- Path = code:lib_dir(AppName, ebin),
+ Path = filename:join(code:lib_dir(AppName), ebin),
489
{ok, FileNames} = file:list_dir(Path),
490
BeamFileNames = lists:filter(fun(Name) -> filename:extension(Name) =:= ".beam" end, FileNames),
491
[list_to_atom(filename:rootname(Name)) || Name <- BeamFileNames].
0 commit comments