I have the following python script (script.py):
#!/usr/bin/env python3
import os
os.makedirs('./downloads/')
Which simply creates a directory named 'downloads' in the directory, where the script.py file is located.
Now I want this program to be run as a cronjob in linux. So the command for that is:
./home/pi/application/script.py
The folder, the program creates should be created under '/home/pi/application/' but it is created in the root directory '/'
How can I fix this?