[scilab-Users] How to get the current script directory ?

Samuel Gougeon Samuel.Gougeon at univ-lemans.fr
Mon Apr 19 13:50:25 CEST 2010


----- Message d'origine -----
De : Gary Nelson
Date : 19/04/2010 13:15:
> I am now more perplexed.
> I am trying to develop a DSP system with lots of functions that I identify with exec( ) and that seems to work
> but does not apparently leave the functions "open" as files
> Are you saying I have to use mopen(function file name)?
> Thanks
> Gary Nelson
>   
A file containing the definition of a macro is opened only _during_ its 
compilation in session with exec().
For your application, the better way is to gather your functions in a 
library. See genlib().
Then, it would be possible to use whereis() and libraryinfo() to recover 
the path to files.

Samuel




More information about the users mailing list