# HG changeset patch # User Paul Boddie # Date 1485964191 -3600 # Node ID 167a42443af63b175beccf9df3e41a4778b6555c # Parent bcc186281e9e9104ebd9938e5c52ef44b40bb415 Removed Python path elements from the library search path. Sorted the option variables and option handling tests. diff -r bcc186281e9e -r 167a42443af6 lplc --- a/lplc Wed Feb 01 00:32:43 2017 +0100 +++ b/lplc Wed Feb 01 16:49:51 2017 +0100 @@ -47,16 +47,16 @@ if __name__ == "__main__": args = sys.argv[1:] - path = libdirs + sys.path[:] + path = libdirs # Determine the options and arguments. - verbose = False - reset = False debug = False make = True make_verbose = True + reset = False traceback = False + verbose = False filenames = [] outputs = [] @@ -66,13 +66,13 @@ l = filenames for arg in args: - if arg == "-v": verbose = True - elif arg == "-r": reset = True + if arg == "-c": make = False elif arg == "-g": debug = True - elif arg == "-c": make = False elif arg == "-q": make_verbose = False + elif arg == "-r": reset = True elif arg == "-tb": traceback = True elif arg == "-o": l = outputs + elif arg == "-v": verbose = True else: l.append(arg)