[Scilab-Dev] a kind of regression

Sylvestre Ledru sylvestre.ledru at scilab.org
Mon Apr 26 17:39:15 CEST 2010


Le lundi 26 avril 2010 à 17:09 +0200, Stéphane Mottelet a écrit :
> Hi all,
> 
> Since the 5.0 version is it no more possible to know the location
> of Scilab main script by using the SCI variable. Before 5.0, it was
> simple, since scilab main script was in SCI/bin. Now, the scilab script
> can be anywhere, e.g. in the Ubuntu scilab package scilab is in
> /usr/bin, but if a user builds it from source, the script is in SCI/bin.
> Maybe is there another way (within Scilab) to know the location of
> the script/binary ?
Good question. You probably know but it is easy to retrieve scilab-bin with sciargs.

About the Scilab script, in most of the case, you should be able to find
it with:
SCI+"../../bin/scilab"
I agree this is not what you expect but this will work with both
official binaries and distribution packages (grosso modo, as long as the
user does not force a weird data directory)

Sylvestre



-- 
-------------------------
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




More information about the dev mailing list