comparison scripts/miscellaneous/run.m @ 7319:4a853a9138e7

[project @ 2007-12-17 19:16:27 by jwe]
author jwe
date Mon, 17 Dec 2007 19:16:27 +0000
parents f084ba47812b
children 2f0920d1edd4
comparison
equal deleted inserted replaced
7318:5c8f09c7a020 7319:4a853a9138e7
49 end_unwind_protect 49 end_unwind_protect
50 else 50 else
51 error ("run: the path %s doesn't exist", d); 51 error ("run: the path %s doesn't exist", d);
52 endif 52 endif
53 else 53 else
54 if (exist (script, "file")) 54 if (exist (f, "file"))
55 evalin ("caller", [script, ";"], "rethrow (lasterror ())"); 55 evalin ("caller", [f, ";"], "rethrow (lasterror ())");
56 else 56 else
57 error ("run: %s not found", s); 57 error ("run: %s not found", s);
58 endif 58 endif
59 endif 59 endif
60 endfunction 60 endfunction