From aa94dee9178e825a2e274956088739d57f8db5cc Mon Sep 17 00:00:00 2001 From: William Escande Date: Thu, 7 Dec 2017 14:55:25 +0100 Subject: [PATCH] Update __main__.py --- google_auth_oauthlib/tool/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google_auth_oauthlib/tool/__main__.py b/google_auth_oauthlib/tool/__main__.py index 080d740..f4400cf 100644 --- a/google_auth_oauthlib/tool/__main__.py +++ b/google_auth_oauthlib/tool/__main__.py @@ -118,7 +118,7 @@ def main(client_secrets, scope, save, credentials, headless): del creds_data['token'] config_path = os.path.dirname(credentials) - if not os.path.isdir(config_path): + if config_path and not os.path.isdir(config_path): os.makedirs(config_path) with open(credentials, 'w') as outfile: