From 9c92032f2252d81c0c3e57fcfa058bfa801b47f8 Mon Sep 17 00:00:00 2001 From: Benny Mirahy Date: Sat, 20 Aug 2022 20:35:00 -0300 Subject: [PATCH] Fix smile path typo --- pywhatkit/core/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pywhatkit/core/core.py b/pywhatkit/core/core.py index 2a6cc0f..c87a740 100644 --- a/pywhatkit/core/core.py +++ b/pywhatkit/core/core.py @@ -44,11 +44,11 @@ def close_tab(wait_time: int = 2) -> None: def findtextbox() -> None: """click on text box""" dir_path = os.path.dirname(os.path.realpath(__file__)) - location = locateOnScreen(f"{dir_path}\\data\\pywhatkit_smile1.png") + location = locateOnScreen(f"{dir_path}/data/pywhatkit_smile1.png") try: moveTo(location[0] + 150, location[1] + 5) except Exception: - location = locateOnScreen(f"{dir_path}\\data\\pywhatkit_smile.png") + location = locateOnScreen(f"{dir_path}/data/pywhatkit_smile.png") moveTo(location[0] + 150, location[1] + 5) click()