Skip to content

Commit

Permalink
Merge pull request #159 from DSACMS/spanayil/windowsSupport
Browse files Browse the repository at this point in the history
fixed windows build by changing path
  • Loading branch information
sachin-panayil authored Sep 19, 2024
2 parents b2e0768 + d12423f commit 5593206
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,25 @@ var resultsFile;

function findPython() {
const possibilities = [
// In packaged app
// In packaged app (mac / linux)
path.join(process.resourcesPath, "python", "bin", "python"),
path.join(process.resourcesPath, "python", "bin", "python3"),
path.join(process.resourcesPath, "python", "bin", "python3.10"),
path.join(process.resourcesPath, "python", "bin", "python3.11"),
path.join(process.resourcesPath, "python", "bin", "python3.12"),

// In development
// In development (mac / linux)
path.join("..", ".venv", "bin", "python"),

// In packaged app (windows)
path.join(process.resourcesPath, "python", "Scripts", "python.exe"),
path.join(process.resourcesPath, "python", "Scripts", "python3.exe"),
path.join(process.resourcesPath, "python", "Scripts", "python3.10.exe"),
path.join(process.resourcesPath, "python", "Scripts", "python3.11.exe"),
path.join(process.resourcesPath, "python", "Scripts", "python3.12.exe"),

Check warning on line 33 in frontend/main.js

View workflow job for this annotation

GitHub Actions / frontend-checks

Delete `····`
// In development (windows)
path.join("..", ".venv", "Scripts", "python.exe"),
];
for (const path of possibilities) {
if (fs.existsSync(path)) {
Expand Down

0 comments on commit 5593206

Please sign in to comment.