Updated README, added "persistant" option to config and command line.

This commit is contained in:
Michael Lazar
2015-09-20 22:56:24 -07:00
parent 80bf45078a
commit 44c4eeca62
4 changed files with 31 additions and 32 deletions

View File

@@ -10,6 +10,7 @@ CONFIG = os.path.join(XDG_HOME, 'rtv', 'rtv.cfg')
TOKEN = os.path.join(XDG_HOME, 'rtv', 'refresh-token')
unicode = True
persistant = True
# https://github.com/reddit/reddit/wiki/OAuth2
# Client ID is of type "installed app" and the secret should be left empty
@@ -55,4 +56,4 @@ def save_refresh_token(token, filename=TOKEN):
def clear_refresh_token(filename=TOKEN):
if os.path.exists(filename):
os.remove(filename)
os.remove(filename)