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


getd

Load all functions defined in a directory

Syntax

getd(path)

Arguments

path

a string. The directory pathname.

"." if getd is called without input argument or if path is an empty string.

Description

Loads all .sci files (containing Scilab functions) defined in the path directory.

If the file does not contain a function, the script will be executed.

Remarks

Functions are loaded in current scope, please use resume to make them available in calling scope.

Examples

getd('SCI/modules/cacsd/macros')

See also

  • exec — script file execution
  • lib — loads a library of Scilab functions and variables, and sets its name
  • pwd — gets Scilab current directory
  • chdir — changes Scilab current directory
  • resume — return or resume execution and copy some local variables
Report an issue
<< function Advanced functions macr2tree >>

Copyright (c) 2022-2024 (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:
Mon Jun 17 17:49:22 CEST 2024