- std::vector<std::string> copy(path);
- std::vector<std::string>::iterator it;
-
-#if defined(_WIN32)
- char* homeDrive = getenv("HOMEDRIVE");
- char* homePath = getenv("HOMEPATH");
- std::string home(homeDrive ? homeDrive : "");
- if (homePath) home += homePath;
-#else
- char *homePath = getenv("HOME");
- std::string home(homePath ? homePath : "");
-#endif