[erlang-questions] passing an include path to escript
Sergey Samokhin
ad.sergey@REDACTED
Fri Jan 22 10:42:43 CET 2010
> Hi Sergey,
> As "Nick Genrakines" show me the trick, here is a working solution:
> 1. assume your code lives inside "mycode" directory
> 2. assume your .hrl lives inside an "include" directory
> mycode
> |________include: my.hrl
> 3. Then, your escript could simply include that .hrl like this:
> #!/usr/bin/env escript
> %% -*- erlang -*-
> %%! -pz ../mycode ebin
> -include_lib("mycode/include/my.hrl").
Thanks a lot!
--
Сергей Самохин
λ-программист
MadGroup
jabber: sergey@REDACTED
e-mail: sergey@REDACTED
тел.: +7 (916) 740-31-86
More information about the erlang-questions
mailing list