Commit bc8ab357 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed a bug in Platform::getDefaultPluginsDirectory() on Windows.

parent 7f98d2cd
...@@ -200,7 +200,8 @@ vector<string> Platform::loadPluginsFromDirectory(string directory) { ...@@ -200,7 +200,8 @@ vector<string> Platform::loadPluginsFromDirectory(string directory) {
string Platform::getDefaultPluginsDirectory() { string Platform::getDefaultPluginsDirectory() {
char* dir = getenv("OPENMM_PLUGIN_DIR"); char* dir = getenv("OPENMM_PLUGIN_DIR");
#ifdef _MSC_VER #ifdef _MSC_VER
if (dir == NULL) if (dir != NULL)
return string(dir);
dir = getenv("PROGRAMFILES"); dir = getenv("PROGRAMFILES");
if (dir == NULL) if (dir == NULL)
return "C:\\\\Program Files\\OpenMM\\lib\\plugins"; return "C:\\\\Program Files\\OpenMM\\lib\\plugins";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment