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.
10 lines
347 B
10 lines
347 B
import sys
|
|
import os
|
|
PARENT = os.path.dirname(__file__)
|
|
sys.path.insert(0,PARENT)
|
|
from gdrive_api import drive_api
|
|
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')
|