Skip to content

Commit 1dbe68f

Browse files
committed
WIP: Add more logging
1 parent c415670 commit 1dbe68f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/renderer/components/App.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ const App = ({helmetUIVersion, versions, searchEMMEPython}) => {
145145
const existingBasedataPath = globalSettingsStore.current.get('basedata_path');
146146
const existingResultsPath = globalSettingsStore.current.get('resultdata_path');
147147
const existingPythonEnvs = globalSettingsStore.current.get('emme_python_envs');
148-
const existingEmmeVersion = globalSettingsStore.current.get('emme_version');
149148
setEmmePythonPath(existingEmmePythonPath);
150149
setHelmetScriptsPath(existingHelmetScriptsPath);
151150
setProjectPath(existingProjectPath);

src/renderer/components/Settings/Settings.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Settings = ({
7272
const [found, pythonPaths] = listEMMEPythonPaths();
7373
if (found) {
7474
alert(`Python-ympäristöjä löytyi. Valitse listasta haluamasi EMME Python-ympäristö ja ota se käyttöön`);
75-
console.log(pythonPaths);
75+
console.log(Array.isArray(pythonPaths));
7676
setEMMEPythonEnvs(pythonPaths);
7777
} else {
7878
alert(`Python-asennukset ${versions.emme_major_versions.toString()} eivät löytyneet oletetusta sijainnista.\n\nLisää Python-asennus manuaalisesti.`);

src/renderer/search_emme_pythonpath.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const listEMMEPythonPaths = () => {
6969
)
7070
})
7171
paths.push(`usr/bin/python${pythonVersion.major}`); // mainly for developers on Mac & Linux
72-
paths.push(`Users/erkki/testi`);
7372

7473
const allPathCombinations = drives.reduce(
7574
(accumulator, d) => {
@@ -134,6 +133,7 @@ function hasPythonEnv(basePath) {
134133
}
135134
})
136135
}
136+
console.log(exePaths);
137137
return exePaths;
138138
}
139139

0 commit comments

Comments
 (0)