aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-06-05 14:50:09 +0200
committerGuido Günther <agx@sigxcpu.org>2016-06-05 14:50:09 +0200
commitdf4103ad7adf0b645f8a0b6168b7fd949deed0db (patch)
tree647b33d09d19af415faaadc2d98ba34693be223a
parentedceb10b3384af3ff0ee62675211d0a115ecde9a (diff)
Unbreak RPi3
by not hardcoding the platform to armv6l
-rwxr-xr-xdht_4
1 files changed, 3 insertions, 1 deletions
diff --git a/dht_ b/dht_
index 47e811d..22595b8 100755
--- a/dht_
+++ b/dht_
@@ -13,10 +13,12 @@
import os
import sys
import math
+import platform
# Useful to run from within the source tree
exe = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
-dev_path='%s/Adafruit_Python_DHT/build/lib.linux-armv6l-2.7/' % (exe, )
+dev_path='%s/Adafruit_Python_DHT/build/lib.linux-%s-2.7/' % (exe,
+ platform.machine())
if os.path.exists(dev_path):
sys.path.insert(0, dev_path)