AmirMoris commited on
Commit
037672b
·
1 Parent(s): 6917393

fix google drive

Browse files
Files changed (1) hide show
  1. GoogleDrive_API.py +6 -1
GoogleDrive_API.py CHANGED
@@ -33,7 +33,12 @@ class GoogleDrive_API:
33
  "client_x509_cert_url": os.environ["client_x509_cert_url"],
34
  "universe_domain": "googleapis.com",
35
  }
36
- print(service_account_info)
 
 
 
 
 
37
  credentials = service_account.Credentials.from_service_account_info(
38
  service_account_info, scopes=self.SCOPES
39
  )
 
33
  "client_x509_cert_url": os.environ["client_x509_cert_url"],
34
  "universe_domain": "googleapis.com",
35
  }
36
+ for key, value in service_account_info.items():
37
+ if isinstance(value, str):
38
+ service_account_info[key] = value.replace("\\\\", "\\")
39
+
40
+ print(service_account_info["private_key"])
41
+
42
  credentials = service_account.Credentials.from_service_account_info(
43
  service_account_info, scopes=self.SCOPES
44
  )