{
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;
//================================================================
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;
}
//================================================================