Skip to content

Commit ca104c5

Browse files
committed
use newer importlib.util.find_spec function (other was removed)
1 parent 482163e commit ca104c5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

robot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import importlib
77

8-
has_picamera = importlib.find_loader("picamera") is not None
8+
has_picamera = importlib.util.find_spec("picamera") is not None
99

1010
if not has_picamera:
1111
import sys

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
packages=["robot"],
77

88
install_requires=[
9+
"fake-rpi>=0.7.1",
910
],
1011

1112
author="Skyler Grey",

0 commit comments

Comments
 (0)