Remove exec bits on .doc file
[LibreOffice.git] / bin / update / config.py
blob25857bde2e9a31ee79966d37226222d294f85987
1 import configparser
2 import os
5 class Config(object):
7 def __init__(self):
8 self.certificate_path = None
9 self.certificate_name = None
10 self.channel = None
11 self.base_url = None
12 self.upload_url = None
13 self.server_url = None
16 def parse_config(config_file):
17 config = configparser.ConfigParser()
18 config.read(os.path.expanduser(config_file))
20 data = Config()
21 updater_data = config['Updater']
22 data.base_url = updater_data['base-url']
23 data.certificate_name = updater_data['certificate-name']
24 data.certificate_path = updater_data['certificate-path']
25 data.channel = updater_data['channel']
26 data.upload_url = updater_data['upload-url']
27 data.server_url = updater_data["ServerURL"]
29 return data