From c5001a3a5a504661b473b9fc74321059de8021b6 Mon Sep 17 00:00:00 2001 From: Nicolas Schneider Date: Thu, 25 Feb 2016 21:36:57 +0100 Subject: [PATCH] call os.path.normpath before splitting a file path into its components This makes sure that any '/' are converted to native directory separators on Windows. --- mesonbuild/backend/vs2010backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index a9567f4a5..25124ccba 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -217,7 +217,7 @@ class Vs2010Backend(backends.Backend): if target.subdir == '': return '' - directories = target.subdir.split(os.sep) + directories = os.path.normpath(target.subdir).split(os.sep) return os.sep.join(['..']*len(directories)) def special_quote(self, arr):