Skip to content

Title: Fix Windows venv Python path resolution#122

Merged
siddu-k merged 3 commits into
siddu-k:mainfrom
YUVRAJ-SINGH-3178:fix/windows-venv-python-path
May 28, 2026
Merged

Title: Fix Windows venv Python path resolution#122
siddu-k merged 3 commits into
siddu-k:mainfrom
YUVRAJ-SINGH-3178:fix/windows-venv-python-path

Conversation

@YUVRAJ-SINGH-3178

Copy link
Copy Markdown
Contributor
  • Problem: Electron uses <venv>/bin/python, which does not exist on Windows venvs.
  • Fix: Resolve venv Python using Scripts/python.exe on Windows and bin/python on other OSes, with a safe fallback to system python/python3 if the venv path is missing.
  • Impact: Allows the backend to start correctly when VIRTUAL_ENV is set on Windows.

Closes PR #120 @siddu-k

Copilot AI review requested due to automatic review settings May 27, 2026 16:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates how the Electron main process determines which Python executable to launch, with improved handling for Windows virtual environments.

Changes:

  • Add fs dependency to verify the Python executable exists in a virtual environment.
  • Replace inline pythonCmd resolution with a resolvePythonCmd() helper that checks for platform-specific venv paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@siddu-k siddu-k merged commit 4486060 into siddu-k:main May 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants