Skip to main content

Module user_path

Module user_path 

Source
Expand description

The person’s own PATH on Windows (HKEY_CURRENT_USER\Environment, value Path): what install.ps1 -Headless adds one entry to, and agentmux uninstall takes that entry back out of. Only the person’s own list is read or written, never the machine’s, and only entries inside the install folder are removed; the rest of the value is kept as it is. The text work is plain code that is tested on every platform.

Functions§

without_under
path_value without the entries that are base or inside it, or None when none are (so nothing is written). An empty base removes nothing.