From 1f013e4df93f82e5de89ebe5daf9b57d005277c8 Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Sat, 15 Jul 2023 12:25:04 -0400 Subject: [PATCH] Enable use on BSD distros. --- pyautogui/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py index 43aebd5..c466407 100644 --- a/pyautogui/__init__.py +++ b/pyautogui/__init__.py @@ -540,7 +540,7 @@ def isShiftCharacter(character): from . import _pyautogui_osx as platformModule elif sys.platform == "win32": from . import _pyautogui_win as platformModule -elif platform.system() == "Linux": +elif platform.system() == "Linux" or "BSD" in platform.system(): from . import _pyautogui_x11 as platformModule else: raise NotImplementedError("Your platform (%s) is not supported by PyAutoGUI." % (platform.system()))