Update post-install script

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-05-27 21:00:24 +02:00
parent 993229ae67
commit 3d2e53bbce
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
4 changed files with 16 additions and 6 deletions

View file

@ -19,7 +19,7 @@ if pathlib.Path(CREDENTIALS_PATH).is_file():
print('Credentials successfully refreshed')
else:
flow = client.flow_from_clientsecrets(CLIENT_SECRETS_PATH, scope=SCOPE,
redirect_uri=REDIRECT_URI)
redirect_uri=REDIRECT_URI)
auth_uri = flow.step1_get_authorize_url()
webbrowser.open(auth_uri)
auth_code = input('Enter the auth code: ')