X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkConfigurationFile.cxx;h=770608440abde5f91c223b2e011f26b41724cce0;hb=87efce51877a540d943b1aa26307994b38bba55b;hp=c79747c0378f512cd63f36182cab6a074831618e;hpb=0b640e26a37a0d20f6e6c75856a49d956f10f53e;p=bbtk.git diff --git a/kernel/src/bbtkConfigurationFile.cxx b/kernel/src/bbtkConfigurationFile.cxx index c79747c..7706084 100644 --- a/kernel/src/bbtkConfigurationFile.cxx +++ b/kernel/src/bbtkConfigurationFile.cxx @@ -64,6 +64,7 @@ namespace bbtk // ==> Set system paths mBin_path = Utilities::GetExecutablePath(); + /* EED 23 Mars 2009 #ifdef MACOSX mInstall_path = mBin_path + "/../../../.."; @@ -81,6 +82,7 @@ namespace bbtk } #endif + ///\TODO : better use ?? mInstall_path = mBin_path + "/.."; @@ -230,6 +232,7 @@ namespace bbtk if (!Utilities::FileExists(mDot_bbtk_path)) mDot_bbtk_is_new = true; Utilities::CreateDirectoryIfNeeded(mDot_bbtk_path); + mDoc_path = Utilities::MakeUserSettingsFullFileName("doc"); Utilities::CreateDirectoryIfNeeded(mDoc_path); @@ -293,6 +296,7 @@ namespace bbtk mTemp_path = Utilities::MakeUserSettingsFullFileName("tmp"); Utilities::CreateDirectoryIfNeeded(mTemp_path); + } //========================================================================= @@ -346,9 +350,13 @@ namespace bbtk strcpy(bbtk_path, Utilities::GetExecutablePath().c_str()); // JPR //strcpy(bbtk_path, "/usr/local/bin"); + + std::string str_home=Utilities::GetEnvHome(); + + // rootDirectory char rootDirectory[200]; - sprintf( rootDirectory, "%s/.bbtk", getenv("HOME")); + sprintf( rootDirectory, "%s/.bbtk", str_home.c_str()); // configPath char configPath[200];