Commit 9ca45473 authored by OzzieIsaacs's avatar OzzieIsaacs

Bugfix finding settings.yaml and dgrive_credentials file

parent 7d3fadb6
...@@ -74,9 +74,9 @@ migrate() ...@@ -74,9 +74,9 @@ migrate()
def getDrive(drive=None, gauth=None): def getDrive(drive=None, gauth=None):
if not drive: if not drive:
if not gauth: 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 # 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: if gauth.access_token_expired:
# Refresh them if expired # Refresh them if expired
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment