add elif for pygrabber import
parent
ac8feff652
commit
72287ce89e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue