You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
309 B
8 lines
309 B
from drive_api import drive_api
|
|
import os
|
|
PARENT = os.path.dirname(__file__)
|
|
def abspath(path):
|
|
return os.path.join(PARENT,path)
|
|
def upload():
|
|
api = drive_api('python.7z uploader',abspath(r'..\secrets\client_secret.json'),abspath(r'..\secrets'))
|
|
api.upload(abspath('..\..\python.7z','/python.7z'))
|