<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-forward-container">
<p>Hi, <br>
</p>
<p> <i>code:add_path(DIRECTORY)</i>, adds the directory to
the list of directories where ERTS would look for a beam file.</p>
<p> To view the list of directories which are currently in this
list, you can use :</p>
<p><i> code:get_path().</i></p>
<p><i> </i>In addition to this, the following caution is
needed :<br>
</p>
<p><i> If there are multiple beams having the same name.
The beam in the directory which occurs first in the list is
loaded for execution by the ERTS.</i></p>
<p><i> There are additional calls in the code module.</i></p>
<p><i> Which would aid in the addition of the directory
towards the beginning of the list <br>
</i></p>
<p><i> code:add_patha(DIRECTORY). <br>
</i></p>
<p><i> For including the directory in the end of the list
use code:add_pathz(DIRECTORY).</i></p>
<p>Hope this helps you Donald, Cheers ! ..</p>
<p>-Adhi<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 16-03-2019 05:52 PM, Donald Steven
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:18c25272-c79d-caa7-c014-652a0906bf84@aim.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>Thanks Adhi. Can you please tell me how to do this; I don't
understand what you mean by "... using code module". T<tt>hx.</tt><br>
</p>
<div class="moz-cite-prefix">On 3/16/2019 7:35 AM, Adhiyaman
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:58ac5eaf-0b0d-f754-4e31-6a4b9348bf15@odysseytec.co.in">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>Hi, <br>
</p>
<p> You can set the code path using code module. This tell
the ERTS where to locate your beams in case you've moved
them from the default lib directory.</p>
<p>-Adhi<br>
</p>
<div class="moz-cite-prefix">On 16-03-2019 04:44 PM, Eric
Pailleau wrote:<br>
</div>
<blockquote type="cite"
cite="mid:29n36od4p4hq4kvlnd64h5e8.1552734894530@email.android.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Hi, </p>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Move
them to a project for all common things, and add a
dependancy to it in all your projects. </p>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">This way
you can specify which version you need. </p>
<br>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Envoyé
depuis mon mobile </p>
<br>
<br>
---- Donald Steven a écrit ----<br>
<br>
To this point (I'm new at this) I've been keeping beam files
for the <br>
modules I need in the same directory as the main module.
This makes <br>
sense for those modules that are closely allied to the main
module and <br>
unlikely to be used or modified for other programs. However,
I have a <br>
core set of modules that are used by all my programs. I'd
like to keep <br>
these together and in *one* place so that they're easier to
maintain. <br>
Also, I don't want to have multiple copies floating around.<br>
<br>
<br>
How do I specify to the compiler where to find them? (I use
Linux.)<br>
<br>
<br>
Thanks.<br>
<br>
<br>
Don<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org"
moz-do-not-send="true">erlang-questions@erlang.org</a><br>
<a
href="http://erlang.org/mailman/listinfo/erlang-questions"
moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org" moz-do-not-send="true">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions" moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org" moz-do-not-send="true">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions" moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
</blockquote>
</div>
</body>
</html>