MS Windows command-line script to view and edit PATH-like environment variables.
Project description
- Download and docs:
- Development:
Description
Running edpath displays entries from the PATH (or other named environment variable), with ‘;’ separators replaced by newlines, so that each entry is on its own line. Running with –edit displays this in $EDITOR, and saved changes are written back to the registry, where they will be picked up by all new processes.
Run with –help for description and usage.
Requirements
Microsoft Windows. Only tested on Windows XP.
Python 2.6, 2.7 or 3.1
Package pywin32, from http://sourceforge.net/projects/pywin32/files/
Package argparse, using easy_install, or from http://pypi.python.org/pypi/argparse
Argparse is not required on Python 2.7, it is built into the standard library.
Status and Known Problems
Feature complete. No known issues.
If you have comments or it doesn’t work for you or you find bugs, I’d love to hear about it. -tartley@tartley.com
Todo
produce a standalone py2exe version
store backups of old PATH values in case user trashes their PATH?
make Linux-friendly. Presumably we can only display the output there, not persist it.
Thanks
Thanks to Tim Golden for his marvellous descriptions and code snippets showing how to read & modify environment variables in the Windows registry.
Changes
0.1.0 Initial release. Feature complete.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file edpath-0.1.2.zip
.
File metadata
- Download URL: edpath-0.1.2.zip
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e453eff3bff4218c2123563a304b2686a1a44bc6ae3bac81b7ff5116b302483 |
|
MD5 | 567355775a4e4d85f6ff3ab499071773 |
|
BLAKE2b-256 | 7679464ff5915ff7a8a07325a870fb1e7d61053b09352ccdc6236f0285c04a2a |
File details
Details for the file edpath-0.1.2.tar.gz
.
File metadata
- Download URL: edpath-0.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f3ccbbd9646e52258164e14a167db0b945a08c3e3d78fe319d20cd67bd57954 |
|
MD5 | 8cd3d245066fe64478e3fd35f2a97628 |
|
BLAKE2b-256 | 762c86b5144d3843b19d9246ea762557f9e61d1469b94a8bf339755c0285229a |