private String trimAndReplaceVariablesIfNeeded(boolean replace, String projectSourcePath, PythonNature nature)
throws CoreException {
String ret = StringUtils.leftAndRightTrim(projectSourcePath, '|');
if (replace) {
StringSubstitution substitution = new StringSubstitution(nature);
ret = substitution.performPythonpathStringSubstitution(ret);
}
return ret;
}
public String getProjectExternalSourcePath(boolean replace) throws CoreException {