Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions alien/automator/ui_control/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
from typing import Any, Dict, List, Optional, Tuple, Type, Union, TYPE_CHECKING

# Conditional imports for Windows-specific packages
if TYPE_CHECKING or platform.system() == "Windows":
try:
import pyautogui
except ImportError:
pyautogui = None

if TYPE_CHECKING or platform.system() == "Windows":
import pywinauto
from pywinauto import keyboard
from pywinauto.controls.uiawrapper import UIAWrapper
from pywinauto.win32structures import RECT
else:
pyautogui = None
pywinauto = None
keyboard = None
UIAWrapper = Any
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ langchain_huggingface==0.3.1
pandas==1.4.3
rich==14.1.0
html2text==2024.2.26
pyautogui==0.9.54; sys_platform == 'win32'
pyautogui==0.9.54
uiautomation==2.0.18; sys_platform == 'win32'
##For removing stopwords
#nltk==3.8.1
Expand Down