add elif for pygrabber import

pull/397/head
Alex Berezhkovsky 2024-08-18 18:33:46 +05:00 committed by GitHub
parent ac8feff652
commit 72287ce89e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,6 @@ from typing import Callable, Tuple, List, Any
from types import ModuleType
import cv2
from PIL import Image, ImageOps
from pygrabber.dshow_graph import FilterGraph
import pyvirtualcam
# Import OS-specific modules only when necessary
@ -14,6 +13,8 @@ if platform.system() == 'Darwin': # macOS
import objc
from Foundation import NSObject
import AVFoundation
elif platform.system() == 'Windows' or platform.system() == 'Linux':
from pygrabber.dshow_graph import FilterGraph
import modules.globals
import modules.metadata