[erlang-questions] code_server and ERL_LIBS: bug or feature?

Siri Hansen erlangsiri@REDACTED
Fri Jun 13 09:58:34 CEST 2014


Hi Serge,

the embedded mode has always been this way, and I think it is the desired
behaviour. In embedded mode, all code is loaded during system start-up
according to the boot script (where all required paths are specified).
There is no dynamic code loading in this mode.

In some (debugging) cases you might want to load code which is not part of
your release (i.e. not specified in the boot script). This is still
possible, but then you need to explicitly add the paths using code:add_path
and friends.

Regards
/siri


2014-06-10 21:35 GMT+02:00 Serge Aleynikov <serge@REDACTED>:

> When trying to start a node with the "-mode embedded" command-line option
> I noticed that ERL_LIBS environment variable setting gets ignored.  Has
> this always been this way or it is a recent change?  Is this the desired
> behavior?
>
> The culprit is in the code_server:add_loader_path/2 function.
>
> Serge
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140613/3d246675/attachment.htm>


More information about the erlang-questions mailing list