summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'bugzilla')
-rwxr-xr-xbugzilla6
1 files 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")