Skip to content

Commit

Permalink
Refactor screen capture source code to improve platform independence
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Apr 25, 2024
1 parent fb5f0d7 commit 8f06791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions screen_capture_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ def read(self):
# platform-independent part of the code.
if platform.system() == "Darwin":
from screen_capture_source_mac import ScreenCaptureMacOS

ScreenCapture = ScreenCaptureMacOS
elif platform.system() == "Windows":
from screen_capture_source_windows import ScreenCaptureWindows

ScreenCapture = ScreenCaptureWindows
else:
ScreenCapture = ScreenCaptureNotImplemented

0 comments on commit 8f06791

Please sign in to comment.