From 9ca454730c198fb4f20f7d0fd9ae5d534fa5b4a8 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 7 Jul 2018 12:00:46 +0200 Subject: [PATCH] Bugfix finding settings.yaml and dgrive_credentials file --- cps/gdriveutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/gdriveutils.py b/cps/gdriveutils.py index bab80bdc..add848b3 100644 --- a/cps/gdriveutils.py +++ b/cps/gdriveutils.py @@ -74,9 +74,9 @@ migrate() def getDrive(drive=None, gauth=None): if not drive: if not gauth: - gauth = GoogleAuth(settings_file='settings.yaml') + gauth = GoogleAuth(settings_file=os.path.join(config.get_main_dir,'settings.yaml')) # Try to load saved client credentials - gauth.LoadCredentialsFile("gdrive_credentials") + gauth.LoadCredentialsFile(os.path.join(config.get_main_dir,'gdrive_credentials')) if gauth.access_token_expired: # Refresh them if expired try: