diff options
author | Beat Bolli <bbolli@ewanet.ch> | 2010-06-06 14:21:14 +0200 |
---|---|---|
committer | Greg Troxel <gdt@ir.bbn.com> | 2010-06-06 20:43:37 -0400 |
commit | 8052cbc6c2ced05f2176a14e2d39f00f82359159 (patch) | |
tree | 9ca928f39a7959f6af89713dcaf63145ae8c7606 /gps | |
parent | 5340f2bbe04655b28bd9dba0a6ddc8be5bec9a8a (diff) | |
download | gpsd-8052cbc6c2ced05f2176a14e2d39f00f82359159.tar.gz |
regress-driver fixes
These changes are necessary on my 32-bit Linux to make the
tests work again after the GPSD_HOME addition.
The fake.py changes is needed in case GPSD_HOME is not set at all
(my initial problem); the 2nd hunk exports GPSD_HOME for subprocesses
of regress-driver and uses it internally.
Diffstat (limited to 'gps')
-rw-r--r-- | gps/fake.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gps/fake.py b/gps/fake.py index a9c37cf3..69ea655b 100644 --- a/gps/fake.py +++ b/gps/fake.py @@ -284,7 +284,7 @@ class DaemonInstance: self.spawncmd = None # Look for gpsd in GPSD_HOME env variable - if os.environ['GPSD_HOME'] : + if os.environ.get('GPSD_HOME'): for path in os.environ['GPSD_HOME'].split(':'): _spawncmd = "%s/gpsd" % path if os.path.isfile(_spawncmd) and os.access(_spawncmd, os.X_OK): |