Skip to content

Commit 83e66d6

Browse files
committed
correction mineure pour Windows
1 parent 1700df0 commit 83e66d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ascii18.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def init_ui(self):
4747
self.open_matrix_button = QPushButton("Ouvrir Matrix")
4848
self.open_matrix_button.clicked.connect(self.camera_chosen)
4949

50-
self.find_virtual_cameras_on_linux()
50+
if sys.platform.startswith("linux"):
51+
self.find_virtual_cameras_on_linux()
5152

5253
# Ajoutez le bouton à votre interface utilisateur
5354
self.layout.addWidget(self.camera_selector)
@@ -216,7 +217,8 @@ def __init__(self):
216217
self.running = running
217218

218219
def run(self, virtual_frame):
219-
self.video_device = self.find_virtual_cameras_on_linux()
220+
if sys.platform.startswith("linux"):
221+
self.video_device = self.find_virtual_cameras_on_linux()
220222
self.virtual_frame = virtual_frame
221223
if self.running:
222224
# print("entre dans virtual_camera.create_virtual_camera()\n")

0 commit comments

Comments
 (0)