summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2018-05-31 17:43:55 +0100
committerJürg Billeter <j@bitron.ch>2018-06-05 08:47:33 +0000
commit065f5ac71f3f9b8b04a4bea66a2c0f6db781d29c (patch)
treeb6e4e33588dd03957be40fe3d4649121e4fdff0e
parent4708ee6bf9a7c6046157c79d227778b7b0b167ae (diff)
downloadbuildstream-065f5ac71f3f9b8b04a4bea66a2c0f6db781d29c.tar.gz
_context.py: Normalize user-defined paths
-rw-r--r--buildstream/_context.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/_context.py b/buildstream/_context.py
index bf7f49515..c0d49b245 100644
--- a/buildstream/_context.py
+++ b/buildstream/_context.py
@@ -161,6 +161,7 @@ class Context():
path = _yaml.node_get(defaults, str, directory)
path = os.path.expanduser(path)
path = os.path.expandvars(path)
+ path = os.path.normpath(path)
setattr(self, directory, path)
# Load artifact share configuration