diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-06-05 14:50:09 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-06-05 14:50:09 +0200 |
commit | df4103ad7adf0b645f8a0b6168b7fd949deed0db (patch) | |
tree | 647b33d09d19af415faaadc2d98ba34693be223a | |
parent | edceb10b3384af3ff0ee62675211d0a115ecde9a (diff) |
Unbreak RPi3
by not hardcoding the platform to armv6l
-rwxr-xr-x | dht_ | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |