Mercurial > octave-nkf
comparison src/load-path.cc @ 6678:49724abe1236
[project @ 2007-05-31 19:44:45 by jwe]
author | jwe |
---|---|
date | Thu, 31 May 2007 19:44:45 +0000 |
parents | 004561c38e8f |
children | 59e22e30aff8 |
comparison
equal
deleted
inserted
replaced
6677:9a8861bc2b34 | 6678:49724abe1236 |
---|---|
1291 return octave_value (load_path::system_path ()); | 1291 return octave_value (load_path::system_path ()); |
1292 } | 1292 } |
1293 | 1293 |
1294 DEFUN (path, args, nargout, | 1294 DEFUN (path, args, nargout, |
1295 "-*- texinfo -*-\n\ | 1295 "-*- texinfo -*-\n\ |
1296 @deftypefn {Function File} {} path (@dots{})\n\ | 1296 @deftypefn {Built-in Function} {} path (@dots{})\n\ |
1297 Modify or display Octave's load path.\n\ | 1297 Modify or display Octave's load path.\n\ |
1298 \n\ | 1298 \n\ |
1299 If @var{nargin} and @var{nargout} are zero, display the elements of\n\ | 1299 If @var{nargin} and @var{nargout} are zero, display the elements of\n\ |
1300 Octave's load path in an easy to read format.\n\ | 1300 Octave's load path in an easy to read format.\n\ |
1301 \n\ | 1301 \n\ |
1345 return retval; | 1345 return retval; |
1346 } | 1346 } |
1347 | 1347 |
1348 DEFCMD (addpath, args, nargout, | 1348 DEFCMD (addpath, args, nargout, |
1349 "-*- texinfo -*-\n\ | 1349 "-*- texinfo -*-\n\ |
1350 @deftypefn {Function File} {} addpath (@var{dir1}, @dots{})\n\ | 1350 @deftypefn {Built-in Function} {} addpath (@var{dir1}, @dots{})\n\ |
1351 @deftypefnx {Function File} {} addpath (@var{dir1}, @dots{}, @var{option})\n\ | 1351 @deftypefnx {Built-in Function} {} addpath (@var{dir1}, @dots{}, @var{option})\n\ |
1352 Add @var{dir1}, @dots{} to the current function search path. If\n\ | 1352 Add @var{dir1}, @dots{} to the current function search path. If\n\ |
1353 @var{option} is @samp{\"-begin\"} or 0 (the default), prepend the\n\ | 1353 @var{option} is @samp{\"-begin\"} or 0 (the default), prepend the\n\ |
1354 directory name to the current path. If @var{option} is @samp{\"-end\"}\n\ | 1354 directory name to the current path. If @var{option} is @samp{\"-end\"}\n\ |
1355 or 1, append the directory name to the current path.\n\ | 1355 or 1, append the directory name to the current path.\n\ |
1356 Directories added to the path must exist.\n\ | 1356 Directories added to the path must exist.\n\ |
1441 return retval; | 1441 return retval; |
1442 } | 1442 } |
1443 | 1443 |
1444 DEFCMD (rmpath, args, nargout, | 1444 DEFCMD (rmpath, args, nargout, |
1445 "-*- texinfo -*-\n\ | 1445 "-*- texinfo -*-\n\ |
1446 @deftypefn {Function File} {} rmpath (@var{dir1}, @dots{})\n\ | 1446 @deftypefn {Built-in Function} {} rmpath (@var{dir1}, @dots{})\n\ |
1447 Remove @var{dir1}, @dots{} from the current function search path.\n\ | 1447 Remove @var{dir1}, @dots{} from the current function search path.\n\ |
1448 \n\ | 1448 \n\ |
1449 @seealso{path, addpath, genpath, pathdef, savepath, pathsep}\n\ | 1449 @seealso{path, addpath, genpath, pathdef, savepath, pathsep}\n\ |
1450 @end deftypefn") | 1450 @end deftypefn") |
1451 { | 1451 { |