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.

7 lines
309 B

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