Skip to content

Commit

Permalink
Merge pull request #147 from nexcvon/patch-1
Browse files Browse the repository at this point in the history
Fix install failing on Windows XP
  • Loading branch information
asweigart authored Apr 20, 2017
2 parents 166b828 + ad7609c commit 65ba347
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyautogui/_pyautogui_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@


# Fixes the scaling issues where PyAutoGUI was reporting the wrong resolution:
ctypes.windll.user32.SetProcessDPIAware()
try:
ctypes.windll.user32.SetProcessDPIAware()
except AttributeError:
pass


"""
Expand Down

0 comments on commit 65ba347

Please sign in to comment.