Fixed token generation script
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
parent
4fc07cd7a9
commit
48dae2009d
|
|
@ -3,10 +3,9 @@ import os
|
|||
from google_auth_oauthlib.flow import InstalledAppFlow
|
||||
from google.auth.transport.requests import Request
|
||||
|
||||
|
||||
credentials = None
|
||||
__G_DRIVE_TOKEN_FILE = "token.pickle"
|
||||
__OAUTH_SCOPE = "https://www.googleapis.com/auth/drive.file"
|
||||
__OAUTH_SCOPE = ["https://www.googleapis.com/auth/drive.file"]
|
||||
if os.path.exists(__G_DRIVE_TOKEN_FILE):
|
||||
with open(__G_DRIVE_TOKEN_FILE, 'rb') as f:
|
||||
credentials = pickle.load(f)
|
||||
|
|
|
|||
Loading…
Reference in New Issue