Modifying the Development Environment
When you start programming in Erlang, you’ll probably put all your modules and files in the same directory and start Erlang from this directory. If you do this, then the Erlang loader will have no trouble finding your code. However, as your applications become more complex, you’ll want to split them into manageable chunks and put the code into different directories. And when you include code from other projects, this external code will have its own directory structure.
Setting the Search Paths for Loading Code
The Erlang runtime system makes use of a code autoloading mechanism. For this to work correctly, you must set a number of search paths in order to find the correct version of your code.
The code-loading ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access