Skip to content
Snippets Groups Projects
Commit 63486c1e authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Guillaume Desmottes
Browse files

ade: Expand ~ in configured paths


Expand the userdir in the configured path so a user can use e.g.
path=~/sysroots in sysroot.conf

Signed-off-by: default avatarSjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D4875
parent acfdca91
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,7 @@ class Ade:
try:
parser = configparser.ConfigParser()
parser.read(self.config)
self.path = parser['general']['path']
self.path = os.path.expanduser(parser['general']['path'])
except:
self.path = '/opt/sysroot/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment