Jan-14-2019, 09:29 AM
Hi,
I've a test.py containing a func(x) in my /home/pi directory.
I need to execute the func(x) from /var/www/html directory with the code "python3 test 0". Said code works within the pi directory but not from outside of it.
I've given the www-data group permissinon to test.py but cannot solve the path '/home/pi' issue.
Any help is appreciated.
I've a test.py containing a func(x) in my /home/pi directory.
I need to execute the func(x) from /var/www/html directory with the code "python3 test 0". Said code works within the pi directory but not from outside of it.
I've given the www-data group permissinon to test.py but cannot solve the path '/home/pi' issue.
Any help is appreciated.