#!/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()