Hello, I'm trying to run a python file from "afterStartup.sh". I can show in the witty.log that it's executed but my python application returns a "ModuleNotFound" error. The python file imports other file and this imports some libraries, and these libraries are not found.
If I run the python script from the console, it works. If I run the afterStartup.sh file, it works!
So I don't know why it doesn't work when the "afterstartup.sh" runs automatically, maybe permissions or something related with the PATH or the python environments? I'm not so expert in python, sorry.
Thanks for your help.
I believe it is related to the path.
The afterStartup.sh is run by daemon.sh, which is run with root user. As root user those paths you rely on are missing. You may need to specify aboslute path for every file you referred.
Ok thanks. I used an environment and it's working.