diff options
author | Will Woods <wwoods@wills-mini.localdomain> | 2007-09-16 21:05:38 -0400 |
---|---|---|
committer | Will Woods <wwoods@wills-mini.localdomain> | 2007-09-16 21:05:38 -0400 |
commit | 7445f721af92b99dd2dac2482c925e7a2b39918c (patch) | |
tree | 6520416f65ff0310132efbfcb3ef95102a62b0f0 | |
parent | d47e98e7edeb80b8cc2b1cf7fe25578253b91e9b (diff) | |
download | python-bugzilla-7445f721af92b99dd2dac2482c925e7a2b39918c.tar.gz python-bugzilla-7445f721af92b99dd2dac2482c925e7a2b39918c.tar.xz python-bugzilla-7445f721af92b99dd2dac2482c925e7a2b39918c.zip |
bugfixes
-rwxr-xr-x | bugzilla | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,7 +19,7 @@ version = '0.1' default_bz = 'https://partner-bugzilla.redhat.com/xmlrpc.cgi' def findcookie(): - globs = ['~/.mozilla/firefox/default.*/cookies.txt'] + globs = ['~/.mozilla/firefox/*default*/cookies.txt'] for g in globs: cookiefiles = glob.glob(os.path.expanduser(g)) if cookiefiles: @@ -63,9 +63,9 @@ if __name__ == '__main__': log = logging.getLogger("bugzilla") # Set up parser - parser = init_parser() + parser = setup_parser() # Get our action - if sys.argv and sys.argv[1] in ('info','query','new','modify'): + if len(sys.argv) > 1 and sys.argv[1] in ('info','query','new','modify'): action = sys.argv[1] else: parser.error("you must specify an action") |