read settings from ~/.config

This commit is contained in:
neingeist 2018-07-11 14:13:22 +02:00
parent 7743da3583
commit d7c20bc0bc

View file

@ -10,7 +10,7 @@ import shlex
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth = GoogleAuth(settings_file=os.path.expanduser('~/.config/drive-download/settings.yaml'))
gauth.CommandLineAuth()
drive = GoogleDrive(gauth)