X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkConfigurationFile.cxx;fp=kernel%2Fsrc%2FbbtkConfigurationFile.cxx;h=eaeca60440d756f923a2791230111a67359e8740;hb=9fb35da25e90c6bc2e91ddafe3dde9c7a33b346a;hp=408c7f765391bf0a99aee4717faca3b1399787ee;hpb=2c81d418a3e17c2b3de7a88659738ab73f75df3c;p=bbtk.git diff --git a/kernel/src/bbtkConfigurationFile.cxx b/kernel/src/bbtkConfigurationFile.cxx index 408c7f7..eaeca60 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: 2011/03/08 11:32:02 $ - Version: $Revision: 1.36 $ + Date: $Date: 2011/03/08 16:56:13 $ + Version: $Revision: 1.37 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -46,24 +46,17 @@ #endif - - namespace bbtk { - //==================================================================== /// Constructor ConfigurationFile::ConfigurationFile() { - - mFile_separator = VALID_FILE_SEPARATOR; + mFile_separator = VALID_FILE_SEPARATOR; // ==> Set system paths mBin_path = Utilities::GetExecutablePath(); - - - /* EED 23 Mars 2009 #ifdef MACOSX mInstall_path = mBin_path + "/../../../.."; @@ -72,7 +65,6 @@ namespace bbtk #endif */ #ifdef MACOSX - std::string macPath("Contents/MacOS"); int sbp = mBin_path.length(); int smp = macPath.length(); @@ -80,12 +72,10 @@ namespace bbtk { mBin_path = mBin_path + "/../../.."; } - - #endif - mInstall_path = mBin_path + "/.."; - +///\TODO : better use ?? + mInstall_path = mBin_path + "/.."; // The relative path to the doc folder (=BBTK_DOC_REL_PATH) // mDoc_rel_path = BBTK_STRINGIFY_SYMBOL(BBTK_DOC_REL_PATH); @@ -124,9 +114,6 @@ namespace bbtk bbtkMessage("config",1," ==> bbs : '"< data : '"< First we look for bbtk_config.xml in "." @@ -252,7 +241,6 @@ namespace bbtk + BBTK_STRINGIFY_SYMBOL(BBTK_DOC_REL_PATH) + "/"; Utilities::MakeValidFileName(doc_path); - std::ofstream f; f.open(filename.c_str(), std::ios::out ); f << "