<div dir="ltr"><div>Thank you very much, Samuel.</div><div><br></div><div>I am using version 5.5.2 on Ubuntu 18.04.</div><div><br></div><div>Could you please let me know how to locate the the scilab.ini and the startup files?</div><div><br></div><div>Thank you very much.</div><div><br></div><div>God bless you.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Samuel Ogbonna Enibe<br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 30, 2019 at 11:18 AM Samuel Gougeon <<a href="mailto:sgougeon@free.fr">sgougeon@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<div class="gmail-m_8792864176063366594moz-cite-prefix">Le 30/05/2019 à 11:19, Samuel Enibe a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Thank you very much for your quick response.</div>
<div><br>
</div>
<div>In using SCILAB, I create a folder for a given class of
problems. The user-defined functions for the problem class are
stored in the folder. I use the SCILAB function <b>genlib to</b>
create a functions library for the user-defined functions in
the folder..</div>
<div><br>
</div>
<div>On startup of SCILAB, I would have to run <b>genlib</b>
again or<b> lib</b> to make those user-defined functions
available for use.</div>
<div><br>
</div>
<div>Is there a way of telling SCILAB to search a given folder
or folders for user-defined functions? In this way, I would
not have to run<b> lib </b>or <b>genlib</b> during each
SCILAB session.</div>
</div>
</blockquote>
<br>
Why don't you load your custom libraries within your scilab.ini or
.scilab startup file? load() can be used (more safely than lib()) to
do so.<br>
<br>
However, this way won't prevent them from being cleared by the first
"clear" (all) statement in the console (but this is the same for
ATOMS modules loaded during the session).<br>
<br>
To answer your question: As far as i know, no, there is presently no
native mechanism looking for libraries in a series of paths, to load
on the fly, or looking for a series of function definitions.sci to
execute on the fly.<br>
<br>
But it can be tentatively implemented by using the <a href="https://help.scilab.org/docs/current/en_US/percentonprompt.html" target="_blank">%onprompt</a>
mechanism. "<tt>--> </tt><tt><a href="http://mailinglists.scilab.org/path-tp3416444p3417057.html" target="_blank">uman
%onpromt @</a></tt>" will tell you more about it.<br>
<br>
Best regards<br>
Samuel Gougeon<br>
<br>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>