Kaydet (Commit) b6d3fa93 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

updater: expand ~ to $HOME in config path of uploader script

Change-Id: I8c5ce1a2c256fbaf046fbe73e5574d48cd3f3a7a
üst d04ab636
import configparser
import os
class Config(object):
......@@ -13,7 +14,7 @@ class Config(object):
def parse_config(config_file):
config = configparser.ConfigParser()
config.read(config_file)
config.read(os.path.expanduser(config_file))
data = Config()
updater_data = config['Updater']
......
......@@ -12,7 +12,7 @@ def main(argv):
updater_config = sys.argv[2]
config = configparser.ConfigParser()
config.read(updater_config)
config.read(os.path.expanduser(updater_config))
user = config["Updater"]["User"]
password = config["Updater"]["Password"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment