<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 30/05/2019 à 11:19, Samuel Enibe a
écrit :<br>
</div>
<blockquote
cite="mid:CAJKcLoX63__=1USarneYsrH48vtP99ufwdjAasbvZostU22-jw@mail.gmail.com"
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">%onprompt</a>
mechanism. "<tt>--> </tt><tt><a
href="http://mailinglists.scilab.org/path-tp3416444p3417057.html">uman
%onpromt @</a></tt>" will tell you more about it.<br>
<br>
Best regards<br>
Samuel Gougeon<br>
<br>
</body>
</html>