[Orxonox-commit 1321] r6039 - sandbox/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Thu Nov 5 21:33:47 CET 2009
Author: rgrieder
Date: 2009-11-05 21:33:47 +0100 (Thu, 05 Nov 2009)
New Revision: 6039
Modified:
sandbox/src/libraries/core/PathConfig.cc
Log:
Applied crucial fix from console branch
Modified: sandbox/src/libraries/core/PathConfig.cc
===================================================================
--- sandbox/src/libraries/core/PathConfig.cc 2009-11-05 20:22:22 UTC (rev 6038)
+++ sandbox/src/libraries/core/PathConfig.cc 2009-11-05 20:33:47 UTC (rev 6039)
@@ -253,6 +253,10 @@
std::string pathVariable = getenv("PATH");
putenv(const_cast<char*>(("PATH=" + pathVariable + ";" + modulePath_.string()).c_str()));
+ // Make sure the path exists, otherwise don't load modules
+ if (!boost::filesystem::exists(modulePath_))
+ return modulePaths;
+
boost::filesystem::directory_iterator file(modulePath_);
boost::filesystem::directory_iterator end;
More information about the Orxonox-commit
mailing list