829663
#!/usr/bin/python3
3dff52
3dff52
# This is a small wrapper script to simplify running the 'bugzilla'
3dff52
# cli tool from a git checkout
3dff52
3dff52
import sys
3dff52
import os
3dff52
import os.path
3dff52
scriptdir = os.path.dirname(sys.argv[0])
3dff52
if scriptdir[0] != '/':
3dff52
    scriptdir = "{}/{}/bugzilla".format(os.getcwd(), scriptdir)
3dff52
sys.path.insert(0, scriptdir)
3dff52
3dff52
from bugzilla import _cli
Michal Koutný 4e69d7
if _cli.DEFAULT_BZ != "https://apibugzilla.suse.com":
3dff52
    raise RuntimeError("Use of this script requires the SUSE version of python-bugzilla.")
3dff52
3dff52
_cli.main()