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
stop using module doctrings for usage text, it fails with -O
strip out unneeded modules in py2exe output
gracefully handle EDITOR not set or doesn’t exist
modify setup.py to split readme by paras, not lines. see setup-fix.py
convert makefile to bin.sh files?
reasess README / usage: which is for which audiences?
needs a canonical webpage for users (not python devs)
store backups of old PATH values in case user trashes their PATH?
option to output on stdout in ‘;’ delimited form
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.3 Add stand-alone executable.
0.1.2 Nothing much.
0.1.1 Improvements to documentation and usage text.
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.4.zip
.
File metadata
- Download URL: edpath-0.1.4.zip
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa03508cbf4b04334a902af22887edc111db03a644d94290a6b2d72f7d9cdbdb |
|
MD5 | 426e63ae1b8edc1b87d201576b19183c |
|
BLAKE2b-256 | bfed60b3cf54ef4a10daf34f9b4ab568e71df5d9b60bf80115245d5d3f5b4240 |
File details
Details for the file edpath-0.1.4.tar.gz
.
File metadata
- Download URL: edpath-0.1.4.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f7a1395ba5ff5c5f72a8e679c82c245061596f9cc975aaa85e549c46576d444 |
|
MD5 | 5f7ad369abf8748614d001891b453899 |
|
BLAKE2b-256 | 6226ba041754e46200fd49673a4160fa495dfbb14e9ea55b225a80639b5cb668 |