diff options
author | Gary E. Miller <gem@rellim.com> | 2018-11-16 20:32:03 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-11-16 20:32:03 +0000 |
commit | 6910812d58c8572401d035a4e8e006cd1b338824 (patch) | |
tree | be2a5bd5a26f59899f16181e337eeab4769746a2 | |
parent | a86794cb3fb1e3a730225976035a72392a3f68ee (diff) | |
download | gpsd-6910812d58c8572401d035a4e8e006cd1b338824.tar.gz |
gpsprof: Add test for PYTHONPATH
-rwxr-xr-x | gpsprof | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -28,7 +28,14 @@ import socket import sys import time -import gps +# pylint wants local modules last +try: + import gps +except ImportError as e: + sys.stderr.write( + "gpsprof: can't load Python gps libraries -- check PYTHONPATH.\n") + sys.stderr.write("%s\n" % e) + sys.exit(1) gps_version = '3.19-dev' if gps.__version__ != gps_version: |