Skip to content

Commit 68cf29d

Browse files
committed
WIP: Add logging to path discovery
1 parent 9b3431a commit 68cf29d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/search_emme_pythonpath.js

+4
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,17 @@ function hasPythonEnv(basePath) {
119119
if(path.startsWith("Emme ")) {
120120
const majorVersionFolderPath = `${basePath}${getDirSeparator()}${path}`;
121121
const majorVersionFolderPathFiles = fs.readdirSync(majorVersionFolderPath);
122+
123+
console.log(majorVersionFolderPathFiles);
122124

123125
// Filter away every folder except possible Emme installation folders
124126
const subVersionFolders = majorVersionFolderPathFiles.filter(file => file.startsWith("Emme-"));
125127
subVersionFolders.forEach(subVersionFolder => {
126128
// Go through the subdirectory and look for a python executable, should be in Emme-x.xx.xx.xx/Python/python.exe on Windows machines.
127129
const emmeFolderFilesPath = majorVersionFolderPath.concat(getDirSeparator(), subVersionFolder);
128130
const emmeFolderFiles = fs.readdirSync(emmeFolderFilesPath);
131+
console.log(emmeFolderFilesPath);
132+
console.log(emmeFolderFiles);
129133
emmeFolderFiles.forEach(folderPath => {
130134
if(folderPath.startsWith("Python")) {
131135
const pythonFolderPath = emmeFolderFilesPath.concat(getDirSeparator(), folderPath);

0 commit comments

Comments
 (0)