fix: tools/bugreport launcher finds a Python 3.8+ itself and never starts a Store alias (#166)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SnAJ7Z3CpVD3PRbN73QtU2 Files changed: - .gitea/workflows/ci.yml - CHANGES.md - INSTALL.md - VERSION - instructions/bug-report.md - tools/README.md - tools/bugreport - tools/bugreport.ps1 - tools/bugreport.py - tools/chemenu/tests/test_bugreport_launcher.py - tools/chemenu/tests/test_instructions_shell.py - tools/chemenu/tests/test_portability.py
This commit is contained in:
1 parent
c77bda2004
commit
5d937233b1
12 files changed
+539
-21
No files matched your search
+11
-6
@@ -6,10 +6,15 @@ Runs on the base Python with the standard library only, and imports nothing from
|
||||
- no venv, a broken package, a Python that is too old. Syntax stays at Python
|
||||
3.8 so that even an old interpreter can still produce a report.
|
||||
|
||||
python tools/bugreport.py [--chronology FILE] [--transcript FILE]...
|
||||
[--session ID | --no-trace] [--titles]
|
||||
[--pseudonymise] [--root DIR] [--out DIR]
|
||||
python tools/bugreport.py --bundle DIR --candidates FILE
|
||||
tools/bugreport [--chronology FILE] [--transcript FILE]...
|
||||
[--session ID | --no-trace] [--titles]
|
||||
[--pseudonymise] [--root DIR] [--out DIR]
|
||||
tools/bugreport --bundle DIR --candidates FILE
|
||||
|
||||
`tools/bugreport` (and `tools/bugreport.ps1` under PowerShell) finds a Python 3.8
|
||||
or newer and runs this file with it, skipping the Microsoft Store's aliases that
|
||||
`python3` resolves to on Windows. Started directly - `<python> tools/bugreport.py`
|
||||
- it works the same, with whichever interpreter was named.
|
||||
|
||||
The bundle is `<out>/bugreport-<UTC stamp>/` plus a zip beside it, in four
|
||||
layers: the environment, the stack, what `wikitool` prints (if it starts), and
|
||||
@@ -1188,7 +1193,7 @@ def make_zip(bundle_dir: Path, archive: Path) -> None:
|
||||
|
||||
def parse_args(argv):
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="bugreport.py",
|
||||
prog="tools/bugreport",
|
||||
description="Collect a bug-report bundle. Removes secrets, keeps page titles out "
|
||||
"unless --titles is given, uploads nothing.",
|
||||
)
|
||||
@@ -1330,7 +1335,7 @@ def _collect(args, root: Path, out: Path, stamp: str, bundle_dir: Path) -> int:
|
||||
print("Mapping: %s" % _sibling(bundle_dir, ".pseudonyms.json"))
|
||||
print("Review: %s" % _sibling(bundle_dir, ".review.txt"))
|
||||
print("Both hold originals and stay on this machine: never share them.")
|
||||
print("Stage 2: python3 tools/bugreport.py --bundle %s --candidates <file>" % bundle_dir)
|
||||
print("Stage 2: tools/bugreport --bundle %s --candidates <file>" % bundle_dir)
|
||||
print()
|
||||
print(STAGE1_NOTICE if pz is not None else PRIVACY_NOTICE)
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user