summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@wills-mini.localdomain>2007-09-16 21:05:38 -0400
committerWill Woods <wwoods@wills-mini.localdomain>2007-09-16 21:05:38 -0400
commit7445f721af92b99dd2dac2482c925e7a2b39918c (patch)
tree6520416f65ff0310132efbfcb3ef95102a62b0f0
parentd47e98e7edeb80b8cc2b1cf7fe25578253b91e9b (diff)
downloadpython-bugzilla-7445f721af92b99dd2dac2482c925e7a2b39918c.tar.gz
python-bugzilla-7445f721af92b99dd2dac2482c925e7a2b39918c.tar.xz
python-bugzilla-7445f721af92b99dd2dac2482c925e7a2b39918c.zip
bugfixes
-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")