diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-06-17 20:55:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-06-17 20:55:47 +0200 |
commit | b6d3fa93befafdc139473290c2143145af55cc05 (patch) | |
tree | c30ffecadae0252469c8bfc38afbdc85e0e51dfc /bin/update | |
parent | d04ab636235d86be3571b8ffbee16183a5e30fb8 (diff) |
updater: expand ~ to $HOME in config path of uploader script
Change-Id: I8c5ce1a2c256fbaf046fbe73e5574d48cd3f3a7a
Diffstat (limited to 'bin/update')
-rw-r--r-- | bin/update/config.py | 3 | ||||
-rwxr-xr-x | bin/update/upload_build_config.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/update/config.py b/bin/update/config.py index 0279a172d258..0bc60a07f53b 100644 --- a/bin/update/config.py +++ b/bin/update/config.py @@ -1,5 +1,6 @@ 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'] diff --git a/bin/update/upload_build_config.py b/bin/update/upload_build_config.py index 3267f021b8e3..9a87661eee73 100755 --- a/bin/update/upload_build_config.py +++ b/bin/update/upload_build_config.py @@ -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"] |