Rename ePassport launcher to ePassport.py to avoid case collision

The launcher script tools/ePassport/ePassport and the package directory tools/ePassport/epassport/ differ only in case, so on case-insensitive filesystems (Windows) they occupy the same path and a fresh clone reports the tracked script as deleted. Rename the launcher to ePassport.py and update the Makefile run target, the README, and the python3 -m epassport shim docstring.
This commit is contained in:
dxl authored and Philippe Teuwen committed 2026-08-25 13:13:21 +02:00
1 parent 98c60d408f
commit 893d8a6f78
4 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ help:
@echo " PYTHON=$(PYTHON) (override if your dependencies live in a venv)"
run:
$(PYTHON) ./ePassport
$(PYTHON) ./ePassport.py
test:
$(PYTHON) -m pytest tests/ -q
+7 -7
View File
@@ -7,13 +7,13 @@ Everything runs **offline**. No telemetry, no cloud OCR, no network calls of
any kind — every font and asset is bundled.
```
./ePassport # normal use
./ePassport --dump DIR # open a saved dump, no hardware
./ePassport --dry-run pm3.log --dump DIR # replay a session you recorded
./ePassport --help
./ePassport.py # normal use
./ePassport.py --dump DIR # open a saved dump, no hardware
./ePassport.py --dry-run pm3.log --dump DIR # replay a session you recorded
./ePassport.py --help
```
`ePassport` is a plain executable script — run it from anywhere, by path or
`ePassport.py` is a plain launcher script — run it directly (it has a shebang) or with `python3`, from anywhere, by path or
from a symlink; there is nothing to install and no `PYTHONPATH` to set. If a
dependency is missing it says which one, which interpreter it used, and the
exact command to fix it.
@@ -22,7 +22,7 @@ It needs an interpreter that has the requirements. With a virtualenv, either
activate it first or point at it directly:
```bash
/path/to/venv/bin/python ./ePassport
/path/to/venv/bin/python ./ePassport.py
```
---
@@ -410,7 +410,7 @@ pm3 -c "hf emrtd dump -n ... -d ... -e ..." | tee pm3.log
```
Makefile run / test / format / clean
ePassport the executable; everything below is the implementation
ePassport.py the launcher; everything below is the implementation
epassport/
app.py app, screens, worker threads
__main__.py shim so `python3 -m epassport` still works
File renamed without changes.
+1 -1
View File
@@ -1,6 +1,6 @@
"""Support ``python3 -m epassport``.
The real entry point is the ``ePassport`` script in the project root; this
The real entry point is the ``ePassport.py`` script in the project root; this
shim only exists so the module form keeps working.
"""