123456789101112131415161718192021222324252627 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # Copyright (c) 2019 Grand Joldes (grandwork2@yahoo.com).
- #
- # This file is Copyright (c) 2019 by the GPSD project
- #
- # SPDX-License-Identifier: BSD-2-clause
- # This code runs compatibly under Python 2 and 3.x for x >= 2.
- """
- 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")
|