Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - English


get source file path of a library function


path = get_function_path(fun_name)



a string, the name of the function


a vector of strings containing:

  • absolute pathname of the function source file (.sci)
  • "<script>" if fun_name is an user-defined function written in Scilab language executed in Scilab's console.
  • "<moduleName>" if fun_name is a builtin function (so-called Scilab primitive)
  • Otherwise: [].


Given the name of a function get_function_path returns a vector containing

  • the absolute pathname of the function source file if the function is defined in a Scilab library (see lib)
  • "<script>" if the function is an user-defined function executed in the console
  • "<moduleName>" if the function is a builtin written and compiled in an external language (C, C++..)

get_function_path returns [] if fun_name does not match any library function.



See also

  • lib — loads a library of Scilab functions and variables, and sets its name
  • string — conversion to string
Report an issue
<< genlib Libraries lib >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Mar 07 09:29:07 CET 2023