So, I’m trying to run this code here:
”’
import time
from win11toast import toast
import schedule

def job():
toast(‘Hello!’)

schedule.every().minute.do(job)

while True:
schedule.run_pending()
time.sleep(1)
”’
This code runs perfectly on PyCharm, but when I try to run it at terminal (by using file_name.py > output.log &), I keep getting the error message on title.

I tried to use sys.path.append(‘path’) and it didn’t work. I don’t know what to do.

Khám phá các thẻ bài đăng