diff options
Diffstat (limited to 'test_xgps_deps.py')
-rwxr-xr-x | test_xgps_deps.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test_xgps_deps.py b/test_xgps_deps.py new file mode 100755 index 00000000..d6138328 --- /dev/null +++ b/test_xgps_deps.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python +from __future__ import print_function + +import sys + +import cairo + +import gi +try: + gi.require_version('Gtk', '3.0') +except (AttributeError, ValueError): + # Explain the reason for the exception, then reraise + print('*** Need PyGObject V3 or later, and Gtk3 ***', file=sys.stderr) + raise +from gi.repository import GObject # pylint: disable=wrong-import-position +# Skip the imports that require X11 +### from gi.repository import Gtk # pylint: disable=wrong-import-position +### from gi.repository import Gdk # pylint: disable=wrong-import-position +### from gi.repository import Pango # pylint: disable=wrong-import-position |