Changeset 10295 for code/trunk/src/libraries/core/PathConfig.cc
- Timestamp:
- Mar 1, 2015, 9:59:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/PathConfig.cc
r9667 r10295 260 260 size_t moduleextensionlength = moduleextension.size(); 261 261 262 #ifdef ORXONOX_PLATFORM_WINDOWS263 // Add that path to the PATH variable in case a module depends on another one264 const char* currentPATH = getenv("PATH");265 std::string newPATH = modulePath_.BF_NATIVE_STRING();266 if (currentPATH != NULL)267 newPATH = std::string(currentPATH) + ';' + newPATH;268 putenv(const_cast<char*>(("PATH=" + newPATH).c_str()));269 #endif270 271 262 // Make sure the path exists, otherwise don't load modules 272 263 if (!boost::filesystem::exists(modulePath_))
Note: See TracChangeset
for help on using the changeset viewer.