* Bug 16679 fixed: get_function_path('acosh') yielded an error
[scilab.git] / scilab / modules / functions / macros / get_function_path.sci
index 447e096..7b0ee2a 100644 (file)
@@ -31,7 +31,7 @@ function path = get_function_path(name)
 
     libname = whereis(name);
 
-    if libname <> [] then
+    if libname <> [] & libname <> "script" & type(evstr(name))==13 then
         for i = 1:size(libname,"*")
             [funcnames, pathlib] = libraryinfo(libname(i));
             path = [path ; fullfile(pathlib, name + ".sci")];