We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20fd43d commit 4e7a7a9Copy full SHA for 4e7a7a9
src/renderer/search_emme_pythonpath.js
@@ -91,7 +91,11 @@ const listEMMEPythonPaths = () => {
91
}
92
});
93
if (pythonInstallations.length > 0) {
94
- return [true, pythonInstallations];
+ // Filter out duplicates
95
+ const filteredPythons = _.uniq(pythonInstallations).filter(filteredPath => {
96
+ return !filteredPath.startsWith('\\');
97
+ });
98
+ return [true, filteredPythons];
99
} else {
100
return [false, null];
101
@@ -140,10 +144,6 @@ function hasPythonEnv(basePath) {
140
144
console.log(e);
141
145
142
146
143
- // Filter out duplicates
- const filteredPaths = _.uniq(exePaths).filter(filteredPath => {
- return !filteredPath.startsWith('\\');
- });
147
return filteredPaths;
148
149
0 commit comments