]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 21 Nov 2008 15:26:44 +0000 (15:26 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 21 Nov 2008 15:26:44 +0000 (15:26 +0000)
kernel/src/bbtkConfigurationFile.cxx

index d5e4e99afaf4ae395c4d840279942ecdc0381738..d558b5c087bc24db436d38a4fce6818e249bccf0 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConfigurationFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/12 12:47:00 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2008/11/21 15:26:44 $
+  Version:   $Revision: 1.22 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -262,6 +262,16 @@ namespace bbtk
                        {
                                if (pname[idx] == '\\') pname[idx] = '/';
                        }
+
+                       for (idx = len-1; idx >=0 ; idx--)
+                       {
+                               if (pname[idx] == '/')
+                               { 
+                                       pname[idx+1] = '\0';
+                                       idx = -1;
+                               }
+                       }
+
                        if ((access(pname, 0) == 0))
                                return 0; /* file exists, return OK */
                        /*else name doesn't seem to exist, return FAIL (falls
@@ -363,6 +373,7 @@ namespace bbtk
          {
                  *slash = 0;
          }
+printf("EED ConfigurationFile::GetExecutablePath  %s\n",name);
          return name;
   }