Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
e16784d3
Commit
e16784d3
authored
Jul 10, 2009
by
Peter Eastman
Browse files
Fixed a bug in Platform::getDefaultPluginsDirectory() introduced by earlier checkin
parent
4cde8c54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
olla/src/Platform.cpp
olla/src/Platform.cpp
+10
-7
No files found.
olla/src/Platform.cpp
View file @
e16784d3
...
...
@@ -202,15 +202,18 @@ const string& Platform::getDefaultPluginsDirectory() {
static
string
directory
;
#ifdef _MSC_VER
if
(
dir
!=
NULL
)
return
directory
=
dir
;
dir
=
getenv
(
"PROGRAMFILES"
);
if
(
dir
==
NULL
)
return
directory
=
"C:
\\\\
Program Files
\\
OpenMM
\\
lib
\\
plugins"
;
return
directory
=
(
string
(
dir
)
+
"
\\
OpenMM
\\
lib
\\
plugins"
);
directory
=
string
(
dir
);
else
{
dir
=
getenv
(
"PROGRAMFILES"
);
if
(
dir
==
NULL
)
directory
=
"C:
\\\\
Program Files
\\
OpenMM
\\
lib
\\
plugins"
;
else
directory
=
string
(
dir
)
+
"
\\
OpenMM
\\
lib
\\
plugins"
;
}
#else
if
(
dir
==
NULL
)
dir
ectory
=
"/usr/local/openmm/lib/plugins"
;
dir
=
"/usr/local/openmm/lib/plugins"
;
directory
=
string
(
dir
);
return
directory
;
#endif
return
directory
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment