[erlang-questions] escript with module dependencies

Robin robi123@REDACTED
Wed Jan 23 04:48:33 CET 2008


This is the header to compile an Escript:

#!/usr/bin/env escript
-mode(compile).

To include a search path see:

code:add_patha/1
code:add_pathz/1

Robin


On Jan 22, 6:03 pm, "Helmick, Mike" <helm...@REDACTED> wrote:
> Hello -
>
> I'm looking to run several scripts that depend on the same modules.
>
> I have several questions/issues related to this.
>
> 1) Is there are way to compile the .erl files to beams when the escript is invoked?
>  - thus eliminating the need for a build step.
>
> 2) Is there a way to signal escript to look for beams in a different directory than the current runtime?
>
> thanks,
> mike helmick
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://www.erlang.org/mailman/listinfo/erlang-questionscode:add_patha/1 to append



More information about the erlang-questions mailing list