Skip to content

Commit

Permalink
updated sys.platform check for linux since 'in' operator is no longer…
Browse files Browse the repository at this point in the history
… needed.
  • Loading branch information
sonotopes committed Nov 29, 2024
1 parent 2913d6f commit 1618b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_py/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_backends():
if sys.platform == "win32" and int(platform.win32_ver()[0].split(".")[0]) >= 8:
possible_backends.append("_camera (MSMF)")

if "linux" in sys.platform:
if sys.platform == "linux":
possible_backends.append("_camera (V4L2)")

if "darwin" in sys.platform:
Expand Down

0 comments on commit 1618b95

Please sign in to comment.