From: Eduardo Davila Date: Fri, 21 Nov 2008 15:26:44 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v0.9.1~85 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=886f5176d504772148701cf104015f586c3dd240;p=bbtk.git *** empty log message *** --- diff --git a/kernel/src/bbtkConfigurationFile.cxx b/kernel/src/bbtkConfigurationFile.cxx index d5e4e99..d558b5c 100644 --- a/kernel/src/bbtkConfigurationFile.cxx +++ b/kernel/src/bbtkConfigurationFile.cxx @@ -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; }