From c18c193c249e190ca24a3c8b41c99ca0f4e0b7e4 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 3 Aug 2018 17:06:36 +0200 Subject: [PATCH] #3208 creaImageIO Feature New Normal branch mingw64 --- src/creaImageIOGimmick.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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; } //================================================================ -- 2.47.1