Permalink
Browse files

add ./ebin and ./deps/*/ebin to code path when looking for local beam…

… files
  • Loading branch information...
1 parent 0dfb388 commit 7d957617dabf005c669b354c89d9dfcfc216046a @RJ committed Jan 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 autoload/erlang_completion.erl
@@ -2,6 +2,9 @@
-export([main/1]).
main([ModuleName]) ->
+ %% TODO use rebar.config here:
+ code:add_path("ebin"),
+ code:add_paths( filelib:wildcard("deps/*/ebin") ),
Module = erlang:list_to_atom(ModuleName),
try Module:module_info(exports) of
Functions ->

0 comments on commit 7d95761

Please sign in to comment.