[erlang-questions] escript and dependencies

Genesislive genesislive@REDACTED
Sun Sep 7 04:23:18 CEST 2014


I have met the same problem before, I think you can add the codes like below into main/1:<br/><br/>	code:add_path("./ebin"),<br/>	code:add_paths(filelib:wildcard("./deps/*/ebin", "./"))<br/><br/>--<br/>ShionRyuu - https://github.com/genesislive
在 2014-09-06 06:36:00,"Stéphane Wirtel" <stephane@REDACTED> 写道:
>Hi all,
>
>How to use some external dependencies with an escript?
>Here is a script and I don't see my path to the dependencies with 
>code:get_path().
>
>https://www.friendpaste.com/2PBNBucysjLeXq51uhGh3y
>
>Where is my error?
>
>Thank you,
>
>Regards,
>
>Stephane
>--
>Stéphane Wirtel - http://wirtel.be - @matrixise
>_______________________________________________
>erlang-questions mailing list
>erlang-questions@REDACTED
>http://erlang.org/mailman/listinfo/erlang-questions


More information about the erlang-questions mailing list