I have a python script myScript.py which is writing on a file every 2 second. But when I want to run this script as a systemd service, service work
myScript.py
systemd
maybe it helps to add a Working directory at myscript.service:
[Service] (...) WorkingDirectory=/home/pi/your_working_directory
Best Regards Kilian