From 63486c1e99108123ef846e04f152a95d96b44ef8 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Date: Thu, 10 Nov 2016 22:28:37 +0100 Subject: [PATCH] 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: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D4875 --- tools/ade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ade b/tools/ade index f69880e..d3deecd 100755 --- a/tools/ade +++ b/tools/ade @@ -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/' -- GitLab