Permalink
Browse files

Adjust code path for running as dep

Check multiple code paths when generating the XDR. Paths are hardcoded.
  • Loading branch information...
1 parent bc6b890 commit 3a2d25a68d10e246ca796c76cf4dd100f05a6457 @msantos committed Mar 28, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/gen_remote_protocol.escript
@@ -33,8 +33,12 @@ main([Src0, Dst0]) ->
Include = filename:absname("include", Dir),
Hrl = filename:basename(Src0, ".x") ++ ".hrl",
- true = code:add_patha(filename:dirname(escript:script_name())
- ++ "/../deps/erpcgen/ebin"),
+ code:add_paths([
+ filename:dirname(escript:script_name())
+ ++ "/../deps/erpcgen/ebin",
+ filename:dirname(escript:script_name())
+ ++ "/../../erpcgen/ebin"
+ ]),
% modules will not be loaded without rehashing here
code:rehash(),

0 comments on commit 3a2d25a

Please sign in to comment.