Posts: 10
Joined: Mon Dec 18, 2017 12:25 pm

Grive command

Wed Jan 17, 2018 1:54 pm

Hello all,

I am using google's grive module to sync data between pi and drive. But I need to execute

Code: Select all

comman inside my python program.
Something like this

Code: Select all

if grivebuttonispressed
I am not sure what kind of library to use to perform this
Please help me in doing this.

User avatar
Posts: 4262
Joined: Sun Jul 22, 2012 4:14 pm

Re: Grive command

Wed Jan 17, 2018 2:01 pm

You need to find out about the Python library called "subprocess"

Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
Posts: 897
Joined: Fri Sep 21, 2012 4:13 pm
Location: Earth But Not Grounded

Re: Grive command

Fri Jan 19, 2018 4:03 pm

Could you not use the Google Drive API ? https://developers.google.com/api-clien ... s/drive/v2

Apple say... Monkey do !!

Return to “Python”