From: Eduardo DAVILA Date: Fri, 3 Aug 2018 15:06:36 +0000 (+0200) Subject: #3208 creaImageIO Feature New Normal branch mingw64 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c18c193c249e190ca24a3c8b41c99ca0f4e0b7e4;p=creaImageIO.git #3208 creaImageIO Feature New Normal branch mingw64 --- diff --git a/src/creaImageIOGimmick.cpp b/src/creaImageIOGimmick.cpp index 6d29613..b04f3ac 100644 --- a/src/creaImageIOGimmick.cpp +++ b/src/creaImageIOGimmick.cpp @@ -202,10 +202,10 @@ namespace creaImageIO { if (mHomeDirectory.size()==0) { -#if defined(__GNUC__) - mHomeDirectory = getenv("HOME"); -#elif defined(_WIN32) +#if defined(_WIN32) mHomeDirectory = getenv("USERPROFILE"); +#elif defined(__GNUC__) + mHomeDirectory = getenv("HOME"); #endif } return mHomeDirectory; @@ -213,14 +213,18 @@ namespace creaImageIO //================================================================ const std::string& Gimmick::GetUserSettingsDirectory() { + printf("EED Gimmick::GetUserSettingsDirectory() Start\n"); if (mUserSettingsDirectory.size()==0) { + printf("EED Gimmick::GetUserSettingsDirectory() 1\n"); mUserSettingsDirectory = GetHomeDirectory(); + printf("EED Gimmick::GetUserSettingsDirectory() 2 %s\n",mUserSettingsDirectory.c_str()); mUserSettingsDirectory += "/.creaImageIO/"; boost::algorithm::replace_all( mUserSettingsDirectory, INVALID_FILE_SEPARATOR , VALID_FILE_SEPARATOR); } + printf("EED Gimmick::GetUserSettingsDirectory() End\n"); return mUserSettingsDirectory; } //================================================================