fix(launcher): remove hard-coded Python 3.13 path - #3
Open
s-qin wants to merge 1 commit into
Open
Conversation
s-qin
force-pushed
the
fix/windows-python-launcher
branch
from
September 7, 2026 22:00
e4e749d to
609d996
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(launcher): remove hard-coded Python 3.13 path
Problem
OpenSpan.bathard-coded a fallback interpreter:C:\Python313\openspanw.exe(a renamedpythonw.execopy). On machines with any other Python install (here: Python 3.14.3 with Tk 8.6), that file does not exist and the launcher dies with a raw missing-file path error — so afterOpenSpan.exeis absent, OpenSpan cannot be started again.Reproduction evidence:
Fix
OpenSpan.batnow resolves the interpreter dynamically — nothing version- or username-bound:OpenSpan.exenext to the script is still preferred, always.a.
pyw.exe— Windows Python Launcher, console-lessb.
pythonw.exeon PATHc.
python.exeon PATH (WindowsApps Store stub skipped)d. newest registered PythonCore install (pythonw preferred)
import tkinter; a broken candidate is skipped, never trusted.Docs updated for the same change (minimal):
BUILD.md(build command example is now version-agnostic:py -3 build_exe.py),build_exe.pydocstring example,TECHNICAL_NOTES.mdlaunch section.Validation
Manually tested on real hardware (OpenSpan.exe absent):
OpenSpan.batstarts the GUI successfullypythonw.exe(Python 3.14.3 / Tk 8.6)No CI pipeline configured in this repository (no .github/workflows); static checks passed (python -m py_compile, git diff --check).