Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-13 09:14:19 +02:00
parent 570482ee4f
commit 12e184df96

View File

@ -52,9 +52,10 @@ class GdriveSync(plugins.Plugin):
try:
gauth = GoogleAuth(settings_file="/root/settings.yaml")
gauth = gauth.LoadCredentialsFile("/root/credentials.json")
gauth.LoadCredentialsFile("/root/credentials.json")
gauth.Authorize()
# Create GoogleDrive instance
self.drive = GoogleDrive(gauth)