From f877a76550f0deb1914a259d11e93667a1656ffa Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Mon, 8 Jun 2026 20:41:30 +0200 Subject: [PATCH] install: use Python entry-point script instead of python -m for launcher 'python -m blitztext' adds cwd to sys.path, so running blitztext from inside a directory that contains a blitztext/ folder shadows the installed package. A proper shebang entry-point script sets sys.path[0] to the script's own directory (venv/bin), making the launcher cwd-independent. Co-Authored-By: Claude Sonnet 4.6 --- linux/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/linux/install.sh b/linux/install.sh index fc58dae..021e66c 100755 --- a/linux/install.sh +++ b/linux/install.sh @@ -44,9 +44,13 @@ echo "==> Writing default config (if absent)" echo "==> Installing launcher → $BIN" mkdir -p "$(dirname "$BIN")" +# Use a Python entry-point script (not `python -m`) so the current working +# directory is never added to sys.path and can't shadow the installed package. cat > "$BIN" <