lore icon indicating copy to clipboard operation
lore copied to clipboard

Fix: Windows support for lore server by using subprocess.run

Open mohsinkhan85090 opened this issue 3 months ago • 2 comments

What

This pull request fixes the issue with running lore server on Windows. It updates the env.py and main.py to use subprocess.run instead of os.execv for invoking Flask, and ensures the correct path to flask.exe inside the virtual environment is used on Windows.

Why

Previously, running lore server on Windows failed with a FileNotFoundError because os.execv could not locate flask.exe. This change ensures cross-platform compatibility, allowing Windows users to run the server without errors.

mohsinkhan85090 avatar Sep 18 '25 08:09 mohsinkhan85090