From 1618b9573ed0479b038a2ff1e5b25ef4c585540d Mon Sep 17 00:00:00 2001 From: sonotopes <105621535+sonotopes@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:54:22 -0500 Subject: [PATCH] updated sys.platform check for linux since 'in' operator is no longer needed. --- src_py/camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_py/camera.py b/src_py/camera.py index 2a5db6c4f2..5aa8eb7374 100644 --- a/src_py/camera.py +++ b/src_py/camera.py @@ -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: