Program: bbtk
Module: $RCSfile: bbtkConfigurationFile.cxx,v $
Language: C++
- Date: $Date: 2009/03/23 13:06:41 $
- Version: $Revision: 1.29 $
+ Date: $Date: 2009/03/24 13:42:59 $
+ Version: $Revision: 1.30 $
=========================================================================*/
/* ---------------------------------------------------------------------
ConfigurationFile::ConfigurationFile()
{
- mFile_separator = VALID_FILE_SEPARATOR;
+ mFile_separator = VALID_FILE_SEPARATOR;
// ==> Set system paths
mBin_path = Utilities::GetExecutablePath();
#endif
*/
#ifdef MACOSX
- mBin_path = mBin_path + "/../../..";
+
+ std::string macPath("Contents/MacOS");
+ int sbp = mBin_path.length();
+ int smp = macPath.length();
+ if (mBin_path.compare( sbp-smp, smp, macPath )==0 )
+ {
+ mBin_path = mBin_path + "/../../..";
+ }
+
+
#endif
mInstall_path = mBin_path + "/..";