normpath() to make a 'a/b' variant dir display as 'a\b' on windows

This commit is contained in:
Roland Puntaier 2017-09-30 18:13:41 +02:00 committed by ita1024
parent 3d64c32c2c
commit 2bbd4b62d5
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class BuildContext(Context.Context):
"""Getter for the variant_dir attribute"""
if not self.variant:
return self.out_dir
return os.path.join(self.out_dir, self.variant)
return os.path.join(self.out_dir, os.path.normpath(self.variant))
variant_dir = property(get_variant_dir, None)
def __call__(self, *k, **kw):