Home Home > GIT Browse > SLE12-SP5
summaryrefslogtreecommitdiff
blob: c1eca50a0d79e75c6639f4699bc6c03ebf1b95da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/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()