[erlang-questions] Library lookup path

Hasan Veldstra hasan.veldstra@REDACTED
Sun Mar 2 21:45:05 CET 2008

> How do I tell Erlang to look in additional places for libraries? I've
> got a build script which builds a set of libraries and puts them in a
> directory named build. Each library gets its own subdirectory like so:
> build/foo-0.1, build/bar-0.1, etc. Right now, I'm symlinking these
> directories into $ROOT/lib so that Erlang can find them at runtime.
> What I'd really like to be able to do is pass erl a flag, like -pa/-
> pz, and tell it where to find these libs. Does something like this
> exist?

You can use code:add_path()/add_patha(), in ~/.erlang for example.

More information about the erlang-questions mailing list