We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46fa19e commit 209a6c8Copy full SHA for 209a6c8
qwiic/__init__.py
@@ -161,6 +161,8 @@ def _load_driver_classes():
161
try:
162
driver_packages = os.listdir(driver_dir)
163
driver_packages += os.listdir(driver_dir_linux)
164
+ if "qwiic_i2c" in driver_packages:
165
+ driver_packages.remove("qwiic_i2c")
166
except IOError:
167
print("The qwiic drivers are not installed - please check your installation")
168
return
@@ -186,6 +188,8 @@ def _load_driver_classes():
186
188
for tmp in moduleItems:
187
189
if lname == tmp.lower():
190
break
191
+ elif tmp.lower().startswith(lname):
192
+ break
193
i = i + 1
194
195
if i >= len(moduleItems):
0 commit comments