From 5480e1ec40f99093ae48677fd7fa0ea513689b3e Mon Sep 17 00:00:00 2001 From: rlbr Date: Tue, 6 Nov 2018 10:43:17 -0600 Subject: [PATCH] changed map to rem, added requirements.txt --- path_append.py | 11 +++++------ requirements.txt | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 requirements.txt diff --git a/path_append.py b/path_append.py index 77ddd55..f80fd9b 100644 --- a/path_append.py +++ b/path_append.py @@ -3,7 +3,6 @@ import argparse import win32con import win32gui import re -import saveto import itertools user = 'Environment' @@ -87,11 +86,11 @@ if __name__ == "__main__": mod.add_argument('-d',dest='dry_run',action='store_true',help='dry run') mod.add_argument('path', help = 'Path to be appended to PATH') - search = alts.add_parser('map') - search.add_argument('--regex',action='store_true',help='use regex') - search.add_argument('-n',action = 'store_true',help = 'negate pattern') - search.add_argument('-d',dest='dry_run',action='store_true',help='dry run') - search.add_argument('pattern', help = 'pattern to search through path and remove matches') + rem = alts.add_parser('rem') + rem.add_argument('--regex',action='store_true',help='use regex') + rem.add_argument('-n',action = 'store_true',help = 'negate pattern') + rem.add_argument('-d',dest='dry_run',action='store_true',help='dry run') + rem.add_argument('pattern', help = 'pattern to search through path and remove matches') args = parser.parse_args() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..809c930 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pypiwin32