pathdoctor
Audit your $PATH in one command. Finds:
- duplicate entries (also via symlinks, e.g. merged
/binand/usr/bin) - missing directories and entries that are files
- empty and relative entries (both mean "current directory": a classic hijack risk)
- world-writable directories (error)
- commands shadowed by an earlier directory (
python3: /home/me/.local/bin/python3 shadows /usr/bin/python3)
$ pathdoctor
warn: #1: duplicate of #0: /home/me/.local/bin
warn: #10: does not exist: /snap/bin
info: python3.14: /home/me/.local/bin/python3.14 shadows /usr/bin/python3.14
$ pathdoctor "$(sudo -n printenv PATH)" # audit any PATH string
$ pathdoctor --strict --no-shadows # CI/dotfiles check: warnings fail too
Exit codes: 0 ok, 1 errors (or warnings with --strict), 2 PATH unset. Stdlib only, Python 3.9+.
Install
pip install pathdoctor or copy pathdoctor.py.
Support
MIT licensed. If it saves you time: https://paypal.me/RafalBaranowski
Metadata
Release files for pathdoctor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pathdoctor-0.1.0.tar.gz | 4.3 kB | Without provenance | Details for pathdoctor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pathdoctor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pathdoctor-0.1.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / pathdoctor-0.1.0.tar.gz
| Download URL | pathdoctor-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72dd25c4c07b3e5d1d6b5a805ae5e1e1520891ab02b9e7ddfbc7041750c9235e
|
|
BLAKE2b-256 checksum How to use checksums |
951896ebe163fa70dea589f02f9b5431534b06ea479409548ff64752840ab1fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / pathdoctor-0.1.0-py3-none-any.whl
| Download URL | pathdoctor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b09bbbc7c67c660f99cac064be0008e85a5d0a56bf4e372843ec77ddbd9892d8
|
|
BLAKE2b-256 checksum How to use checksums |
15468b71bfb47add42c43b1cb09545ff91a11f603d07b8dbae4a44c1628223cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for pathdoctor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.