From 886f5176d504772148701cf104015f586c3dd240 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 21 Nov 2008 15:26:44 +0000 Subject: [PATCH] *** empty log message *** --- kernel/src/bbtkConfigurationFile.cxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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; } -- 2.45.1