From deef365f648a68468810ea21f8008234eb0cddbf Mon Sep 17 00:00:00 2001 From: AuroraWright Date: Fri, 8 Mar 2024 03:39:44 +0100 Subject: [PATCH] Fix Windows issue --- owocr/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owocr/run.py b/owocr/run.py index fd2b992..4c6dc96 100644 --- a/owocr/run.py +++ b/owocr/run.py @@ -537,7 +537,7 @@ def run(read_from=None, :param screen_capture_combo: When reading with screen capture, specifies a combo to wait on for taking a screenshot instead of using the delay. As an example: "++s". The list of keys can be found here: https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key """ - if read_from == 'screencapture' and sys.platform != 'darwin': + if read_from == 'screencapture' and sys.platform not in ('darwin', 'win32'): active_window_name = pywinctl.getActiveWindowTitle() logger.configure(handlers=[{'sink': sys.stderr, 'format': config.get_general('logger_format')}])