#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Copyright 2019 Grand Joldes (grandwork2@yahoo.com).
#
# This file is Copyright 2019 by the GPSD project
#
# SPDX-License-Identifier: BSD-2-clause

# This code runs only under Python 3.x for x >= 6.

"""
Script that runs the aiogps example. On Python versions that can not run the
example it displays a message and exits.
"""

import sys


if __name__ == "__main__":
    # aiogps only available on Python >= 3.6
    if sys.version_info >= (3, 6):
        import example_aiogps
        example_aiogps.run()
    else:
        sys.exit("Sorry, aiogps is only available for Python versions >= 3.6")

# vim: set expandtab shiftwidth=4
