From df4103ad7adf0b645f8a0b6168b7fd949deed0db Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 5 Jun 2016 14:50:09 +0200 Subject: Unbreak RPi3 by not hardcoding the platform to armv6l --- dht_ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dht_') 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) -- cgit v1.2.3