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 $
=========================================================================*/
/* ---------------------------------------------------------------------
{
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
{
*slash = 0;
}
+printf("EED ConfigurationFile::GetExecutablePath %s\n",name);
return name;
}