Skip to content

Commit

Permalink
fixed windows build by changing path
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Panayil <sachinpanayil01@gmail.com>
  • Loading branch information
sachin-panayil committed Sep 19, 2024
1 parent b2e0768 commit d12423f
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 d12423f

Please sign in to comment.