]> Creatis software - creaImageIO.git/commitdiff
#3208 creaImageIO Feature New Normal branch mingw64
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Fri, 3 Aug 2018 15:06:36 +0000 (17:06 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Fri, 3 Aug 2018 15:06:36 +0000 (17:06 +0200)
src/creaImageIOGimmick.cpp

index 6d296136060ffe020716d6b2c0ffbdd580d041b3..b04f3ac103765bbeb0f25b6be17c91f9b68cf21a 100644 (file)
@@ -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;
   }
   //================================================================