gowthamidentity
Posts: 8
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

grive
comman inside my python program.
Something like this

Code: Select all

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

User avatar
PeterO
Posts: 3741
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"

PeterO
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
davef21370
Posts: 890
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

Dave.
Apple say... Monkey do !!

Return to “Python”

Who is online

Users browsing this forum: scotty101 and 23 guests