2012-01-24 21:12:57 +00:00
|
|
|
#!/usr/bin/python
|
2019-03-08 12:43:50 +00:00
|
|
|
import configparser, os
|
2012-01-24 21:12:57 +00:00
|
|
|
|
|
|
|
def load_settings():
|
2019-03-08 12:43:50 +00:00
|
|
|
configfile = configparser.ConfigParser()
|
2012-01-24 21:12:57 +00:00
|
|
|
configfile.read('settings.cfg')
|
|
|
|
config=dict()
|
|
|
|
config['mail']=configfile.get("general","mail")
|
|
|
|
config['start_date']=configfile.get("general","start_date")
|
|
|
|
|
|
|
|
config['username']=configfile.get("blogsettings","username")
|
2012-09-29 18:55:49 +00:00
|
|
|
config['password']=configfile.get("blogsettings","password")
|
2012-01-24 21:12:57 +00:00
|
|
|
config['xmlrpc_endpoint']=configfile.get("blogsettings","xmlrpc_endpoint")
|
|
|
|
config['blog_id']=configfile.get("blogsettings","blog_id")
|
|
|
|
config['participants_page_id']=configfile.get("blogsettings","participants_page_id")
|
2012-09-29 18:55:49 +00:00
|
|
|
return config
|