Permalink
Browse files

verx: search for deps

  • Loading branch information...
1 parent 4b519db commit 2f22428c199212b93085a62948a75774cbdb34a2 @msantos committed Mar 30, 2013
Showing with 6 additions and 7 deletions.
  1. +6 −7 bin/verx
View
@@ -7,15 +7,14 @@
-include_lib("verx/include/verx.hrl").
main(Opt) ->
- % load verx
- true = code:add_pathz(filename:dirname(escript:script_name())
- ++ "/../ebin"),
+ Basedir = filename:absname(filename:dirname(escript:script_name())),
- true = code:add_pathz(filename:dirname(escript:script_name())
- ++ "/../deps/procket/ebin"),
+ Paths = [ Basedir ++ "/../ebin" ] ++
+ filelib:wildcard(Basedir ++ "/../deps/*/ebin") ++
+ filelib:wildcard(Basedir ++ "/../../*/ebin"),
- true = code:add_pathz(filename:dirname(escript:script_name())
- ++ "/../deps/uuid/ebin"),
+ % load verx
+ code:add_paths(Paths),
call(Opt).

0 comments on commit 2f22428

Please sign in to comment.