I just wanted to ask your help with my problem below.
My code is working perfectly but after converting it to .exe using PyInstaller, I will encounter FileNotFoundError: [WinError 2].
Kindly suggest how I can fix it.
![FileNotFound:[WinError 2]](../../images/3844410542.webp)
Code:
import pyautogui, time
try:
while True:
time.sleep(30)
pyautogui.dragRel(1,0)
pyautogui.dragRel(-1,0)
except KeyboardInterrupt:
print('Done')