Navigation

Operators and Keywords

Function List:

C++ API

: savepath ()
: savepath (file)
: status = savepath (…)

Save the unique portion of the current function search path that is not set during Octave’s initialization process to file.

If file is omitted, Octave looks in the current directory for a project-specific .octaverc file in which to save the path information. If no such file is present then the user’s configuration file ~/.octaverc is used.

If successful, savepath returns 0.

The savepath function makes it simple to customize a user’s configuration file to restore the working paths necessary for a particular instance of Octave. Assuming no filename is specified, Octave will automatically restore the saved directory paths from the appropriate .octaverc file when starting up. If a filename has been specified then the paths may be restored manually by calling source file.

See also: path, addpath, rmpath, genpath, pathdef.

Package: octave