[erlang-questions] [noob-question]: Run modules outside of the directory

Serge Aleynikov <>
Wed Jan 7 14:07:46 CET 2009


One caveat to this is that if that module is not located in the 
/path/to/*/ebin directory (i.e. ending with "ebin" subdir) the ERL_LIBS 
setting won't find it, whereas "erl -pa /path/to/some/dir" option will.

Bernard Duggan wrote:
> As an alternative to Ulf and David's suggestions, you can also set the
> ERL_LIBS environment variable to much the same effect.  Any paths you
> provide in it will be searched in addition to the default ones.  From
> memory, the separator for multiple paths is a colon.
> 
> Cheers,
> 
> Bernard
> 
> Sten Gruener wrote:
>> Hi,
>>
>> I have got a somehow noob question. I am trying to find a possibility
>> to run a function from a module which is not inside of the directory.
>> Is there a way to do it? Like modifying the path variable?
>>
>> Cheers,
>> Sten
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list