"wrappers/python/src/vscode:/vscode.git/clone" did not exist on "bd232057c475b9520fe5d965f55039a61a79d273"
Commit bc8ab357 authored by Peter Eastman's avatar Peter Eastman
Browse files

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

parent 7f98d2cd
......@@ -200,8 +200,9 @@ vector<string> Platform::loadPluginsFromDirectory(string directory) {
string Platform::getDefaultPluginsDirectory() {
char* dir = getenv("OPENMM_PLUGIN_DIR");
#ifdef _MSC_VER
if (dir == NULL)
dir = getenv("PROGRAMFILES");
if (dir != NULL)
return string(dir);
dir = getenv("PROGRAMFILES");
if (dir == NULL)
return "C:\\\\Program Files\\OpenMM\\lib\\plugins";
return string(dir)+"\\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