diff scripts/testfun/rundemos.m @ 12673:64193afe93d8

runtests.m, rundemos.m: Remove final filesep() character from directory name before looking it up in search patch. * runtests.m, rundemos.m: Remove final filesep() character from directory name.
author Rik <octave@nomad.inbox5.com>
date Sun, 15 May 2011 07:39:01 -0700
parents e3dc23f7dd54
children 1ca3cde15b18
line wrap: on
line diff
--- a/scripts/testfun/rundemos.m	Sun May 15 07:26:20 2011 -0700
+++ b/scripts/testfun/rundemos.m	Sun May 15 07:39:01 2011 -0700
@@ -35,6 +35,7 @@
     if (is_absolute_filename (directory))
       dirs = {directory};
     else
+      directory = regexprep (directory, ['\',filesep(),'$'], "");
       fullname = find_dir_in_path (directory);
       if (! isempty (fullname))
         dirs = {fullname};