andreafabrizi / Dropbox-Uploader

Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.
https://www.andreafabrizi.it/2016/01/01/Dropbox-Uploader/
GNU General Public License v3.0
6.57k stars 1.08k forks source link

Running the dropbox command from python #482

Closed samkmk closed 5 years ago

samkmk commented 5 years ago

Hello,

I have a weird but perhaps easy solveable problem. I have a python file with the function of take a picture with the raspberry camera when an external button is pressed and the uploads the picture to my dropbox, im using a line for this as following os.system("dropboxcommand"). My problem is this only work when im manually start the pythonfile. It doesnt work when the python file autostarts after a reboot. The dropboxcommand simply just gets ignored.

Does anybody else have this issue? What could be the problem?

samkmk commented 5 years ago

I solved it. The problem occured because when the pythonfile was autostarted it didnt have a accesstoken for some reason. I added the token and now everything works again