I have write a simple command line tool for managing windows PATH env variable with in Python. The program mainly uses _winreg lib to access the Windows Registry.
Several Example:
The code the tool is available at this github gists.
Several Example:
# List all the current PATH entries python winpath.py list # Find if C:\Temp in PATH python winpath.py find C:\Temp # Add C:\Temp to System PATH python winpath.py add system C:\Temp # Remove C:\Temp from PATH(both system and user) python winpath.py remove C:\Temp
The code the tool is available at this github gists.
Comments