This post has NOT been accepted by the mailing list yet.
I want to make a bunch of sci-files (macros) _permenently_ available in Scilab from startup on. (Even after a "clear" statement). I use Scilab 5.5.2 on several platforms.
I have some experience with GNU Octave. Function files in a directory could be easily added via the "addpath()" statement in the startup file. And addpath() survives a "clear()" statement.
In Scilab there is something similar called "getd()", which would fit my needs but it get lost after a "clear".
So I looked deeper and find library capability in the help. I did in the "scilab.ini":
genlib('mylib','/path/to/the/sci-files/'); // create the bin-files from the sci
mylib=lib('/path/to/the/sci-files/'); // create the library "mylib"
predef("all"); // make the library persistent to survive "clear"
As I already read in the mailing-list archive there is a bug in Scilab, that the "predef" statement cannot be invoked from scilab.ini (.scilab). I could reproduce the bug with the error message: