comparison scripts/testfun/rundemos.m @ 18074:1e27079409bf

Rename function dir_in_path to dir_in_loadpath. * NEWS: Announce new function in 4.2. * scripts/deprecated/find_dir_in_path.m: Call dir_in_loadpath as replacement. * utils.cc (Fdir_in_loadpath): Renamed dir_in_path to dir_in_loadpath. * help.m, what.m, rundemos.m, runtests.m: Chane instances of dir_in_path to dir_in_loadpath. * utils.cc, variables.cc: Change seealso links to point to dir_in_loadpath. * func.txi: Document dir_in_loadpath function.
author Rik <rik@octave.org>
date Wed, 04 Dec 2013 08:23:42 -0800
parents ff05d5b70411
children 889e2c083253
comparison
equal deleted inserted replaced
18072:b4b5ee91561a 18074:1e27079409bf
40 if (isempty (dirs{1})) 40 if (isempty (dirs{1}))
41 ## Search for directory name in path 41 ## Search for directory name in path
42 if (directory(end) == '/' || directory(end) == '\') 42 if (directory(end) == '/' || directory(end) == '\')
43 directory(end) = []; 43 directory(end) = [];
44 endif 44 endif
45 fullname = dir_in_path (directory); 45 fullname = dir_in_loadpath (directory);
46 if (isempty (fullname)) 46 if (isempty (fullname))
47 error ("rundemos: DIRECTORY argument must be a valid pathname"); 47 error ("rundemos: DIRECTORY argument must be a valid pathname");
48 endif 48 endif
49 dirs = {fullname}; 49 dirs = {fullname};
50 endif 50 endif