From 7445f721af92b99dd2dac2482c925e7a2b39918c Mon Sep 17 00:00:00 2001 From: Will Woods Date: Sun, 16 Sep 2007 21:05:38 -0400 Subject: bugfixes --- bugzilla | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bugzilla b/bugzilla index 8022704..c59b5e3 100755 --- a/bugzilla +++ b/bugzilla @@ -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") -- cgit