summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-16 20:32:03 +0000
committerGary E. Miller <gem@rellim.com>2018-11-16 20:32:03 +0000
commit6910812d58c8572401d035a4e8e006cd1b338824 (patch)
treebe2a5bd5a26f59899f16181e337eeab4769746a2 /gpsprof
parenta86794cb3fb1e3a730225976035a72392a3f68ee (diff)
downloadgpsd-6910812d58c8572401d035a4e8e006cd1b338824.tar.gz
gpsprof: Add test for PYTHONPATH
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof9
1 files changed, 8 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index a0b01751..6b0650f7 100755
--- a/gpsprof
+++ b/gpsprof
@@ -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: