1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) DIGITEO - 2009-2010 - Allan CORNET
4 // Copyright (C) 2013 - Scilab Enterprises - Adeline CARNIS
6 // This file must be used under the terms of the CeCILL.
7 // This source file is licensed as described in the file COPYING, which
8 // you should have received as part of this distribution. The terms
9 // are also available at
10 // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
12 function path = get_function_path(name)
18 error(msprintf(gettext("%s: Wrong number of input argument: %d expected.\n"), "get_function_path", 1));
21 if type(name) <> 10 then
22 error(999,msprintf(_("%s: Wrong type for input argument #%d: string expected.\n"),"get_function_path",1));
25 if size(name,"*") <> 1 then
26 error(999,msprintf(_("%s: Wrong size for input argument #%d: string expected.\n"),"get_function_path",1));
29 libname = whereis(name);
32 for i = 1:size(libname,"*")
33 [funcnames, pathlib] = libraryinfo(libname(i));
34 path = [path ; pathlib + name + ".sci"];
36 path = pathconvert(path,%F);