Run a command with patched executables on the path
Project description
patch-path
Run a command with patched executables on the path
This is vibe coded but I am using it.
Alternatives and prior work
This is encouraged by patching frameworks like mock in python and the LD_PRELOAD environment variable.
You could patch your PATH directory and have it point at a directory containing patching programs
Usage
Patch fzf with a program that returns an empty string and log calls to fzf along with their input
patch-path --fzf program
Patch fzf and have it return hello
patch-path --fzf=hello program
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file patch_path-1.0.0.tar.gz.
File metadata
- Download URL: patch_path-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de6cce0d723b317bdc5af4c51d213a2ba37c9318df18a0ec3b4bdc2c66654fb8
|
|
| MD5 |
f5c8de1e138936f692bc0d12a8711c33
|
|
| BLAKE2b-256 |
3a8d83d044ba0eafe3def3a9b7184b187ac1a33b45725c3d0843406ccdfb9fc6
|
File details
Details for the file patch_path-1.0.0-py3-none-any.whl.
File metadata
- Download URL: patch_path-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc8494e79e254f54e9e57721963519fae116938cf0918f25a98b83334ffdb7da
|
|
| MD5 |
a34ecf0949e13b625fe6a188433720f2
|
|
| BLAKE2b-256 |
583b398aa379350dfb8a3728798af7c2c929723f91ad7b742c42ac1dbb95da00
|