External OAuth configuration file

This commit is contained in:
Théo Piboubès
2015-08-28 21:13:57 +02:00
parent c579aa928d
commit d24c81bce6
3 changed files with 40 additions and 33 deletions

View File

@@ -77,8 +77,8 @@ class OAuthTool(object):
os.path.join(HOME, '.config'))
config_paths = [
os.path.join(XDG_CONFIG_HOME, 'rtv', 'rtv.cfg'),
os.path.join(HOME, '.rtv')
os.path.join(XDG_CONFIG_HOME, 'rtv', 'oauth.cfg'),
os.path.join(HOME, '.rtv-oauth')
]
# get the first existing config file