mirror of
https://github.com/trycua/computer.git
synced 2026-01-04 12:30:08 -06:00
Disabled pyautogui FAILSAFE
This commit is contained in:
@@ -23,6 +23,7 @@ logger = logging.getLogger(__name__)
|
||||
# This allows the server to run in headless environments
|
||||
try:
|
||||
import pyautogui
|
||||
pyautogui.FAILSAFE = False
|
||||
|
||||
logger.info("pyautogui successfully imported, GUI automation available")
|
||||
except Exception as e:
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import pyautogui
|
||||
pyautogui.FAILSAFE = False
|
||||
from pynput.mouse import Button, Controller as MouseController
|
||||
from pynput.keyboard import Key, Controller as KeyboardController
|
||||
import time
|
||||
|
||||
@@ -18,6 +18,7 @@ logger = logging.getLogger(__name__)
|
||||
# Try to import pyautogui
|
||||
try:
|
||||
import pyautogui
|
||||
pyautogui.FAILSAFE = False
|
||||
logger.info("pyautogui successfully imported, GUI automation available")
|
||||
except Exception as e:
|
||||
logger.error(f"pyautogui import failed: {str(e)}. GUI operations will not work.")
|
||||
|
||||
Reference in New Issue
Block a user