Google Drive Api Invalid Secrets File Through Task Scheduler
I need some help troubleshooting something that should be easy to figure out. I have the following files in this folder on my computer: C:\Users\theda\Documents\Python\CANSLIM Scri
Solution 1:
I was able to get this to work by supplying a location to my auth and settings files using the following lines of code. Hope it helps someone:
secrets_file = os.path.normpath("C:/Users/theda/Documents/Python/CANSLIM Script/client_secrets.json")
settings_file = os.path.normpath("C:/Users/theda/Documents/Python/CANSLIM Script/settings.yaml")
gauth = GoogleAuth(settings_file=settings_file)
GoogleAuth.DEFAULT_SETTINGS['client_config_file'] = secrets_file
Post a Comment for "Google Drive Api Invalid Secrets File Through Task Scheduler"