Use specified section of auth.ini for each account.

This commit is contained in:
Matt
2020-08-09 15:54:56 -05:00
parent be3ee80314
commit 817073812c

View File

@ -32,9 +32,9 @@ config = ConfigParser()
config.read('auth.ini')
# read values from a section
server = config.get('mastodon', 'server')
email = config.get('mastodon', 'email')
password = config.get('mastodon', 'password')
server = config.get('hackgfk_311_ebooks', 'server')
email = config.get('hackgfk_311_ebooks', 'email')
password = config.get('hackgfk_311_ebooks', 'password')
# Register the app (once)
if not os.path.isfile('hackgfk_311_ebooks_clientcred.secret'):