#!/usr/bin/env python
"""
Entrance script for libvirt-ci command line
"""

# pylint: disable=wrong-import-position,import-error
import os
import sys

# Simple magic for using scripts within a source tree
BASEDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if os.path.isdir(os.path.join(BASEDIR, 'libvirt_ci')):
    os.environ['PATH'] += ":" + os.path.join(BASEDIR, 'scripts')
    sys.path.insert(0, BASEDIR)


from libvirt_ci.app import CIApp  # noqa

if __name__ == "__main__":
    app = CIApp()
    app.run()
