X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/be4506a78edb35b7bc4514949833cb86459e24c3..c8bf56890d0e7b6e7e1993e164f14d55d72f9544:/examples/light.py?ds=sidebyside diff --git a/examples/light.py b/examples/light.py index 3442fb4..db61e6a 100755 --- a/examples/light.py +++ b/examples/light.py @@ -1,8 +1,14 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import time -import ltr559 import logging +try: + # Transitional fix for breaking change in LTR559 + from ltr559 import LTR559 + ltr559 = LTR559() +except ImportError: + import ltr559 + logging.basicConfig( format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',