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.

9 lines
347 B

  1. import sys
  2. import os
  3. PARENT = os.path.dirname(__file__)
  4. sys.path.insert(0,PARENT)
  5. from gdrive_api import drive_api
  6. def abspath(path):
  7. return os.path.join(PARENT,path)
  8. def upload():
  9. api = drive_api('python.7z uploader',abspath(r'..\secrets\client_secret.json'),abspath(r'..\secrets'))
  10. api.upload(abspath('..\..\python.7z'),'/python.7z')