Home Home > GIT Browse
summaryrefslogtreecommitdiff
blob: c06c04b6dca4e570884fb71b40d13ddb558b79d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3

# This is a small wrapper script to simplify running the 'bugzilla'
# cli tool from a git checkout

import sys
import os
import os.path
scriptdir = os.path.dirname(sys.argv[0])
if scriptdir[0] != '/':
    scriptdir = "{}/{}/bugzilla".format(os.getcwd(), scriptdir)
sys.path.insert(0, scriptdir)

from bugzilla import _cli
if _cli.DEFAULT_BZ != "https://apibugzilla.suse.com/xmlrpc.cgi":
    raise RuntimeError("Use of this script requires the SUSE version of python-bugzilla.")

_cli.main()