Use specified section of auth.ini for each account.
This commit is contained in:
@ -32,9 +32,9 @@ config = ConfigParser()
|
|||||||
config.read('auth.ini')
|
config.read('auth.ini')
|
||||||
|
|
||||||
# read values from a section
|
# read values from a section
|
||||||
server = config.get('mastodon', 'server')
|
server = config.get('hackgfk_311_ebooks', 'server')
|
||||||
email = config.get('mastodon', 'email')
|
email = config.get('hackgfk_311_ebooks', 'email')
|
||||||
password = config.get('mastodon', 'password')
|
password = config.get('hackgfk_311_ebooks', 'password')
|
||||||
|
|
||||||
# Register the app (once)
|
# Register the app (once)
|
||||||
if not os.path.isfile('hackgfk_311_ebooks_clientcred.secret'):
|
if not os.path.isfile('hackgfk_311_ebooks_clientcred.secret'):
|
||||||
|
Reference in New Issue
Block a user