aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-02-25 22:49:44 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-02-25 22:49:44 +0200
commit003696fc27e1f560a8448cc5998443696a162927 (patch)
tree51cadce504b62613ffea6de46c75d088c587dedd /mesonbuild/backend/vs2010backend.py
parent6f907dd4abc0d2b2afb8e3a588cd994e8dc1492f (diff)
parentc5001a3a5a504661b473b9fc74321059de8021b6 (diff)
downloadmeson-003696fc27e1f560a8448cc5998443696a162927.zip
meson-003696fc27e1f560a8448cc5998443696a162927.tar.gz
meson-003696fc27e1f560a8448cc5998443696a162927.tar.bz2
Merge VS2010 path fix branch.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index fc241e3..9b80edd 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -227,10 +227,8 @@ class Vs2010Backend(backends.Backend):
if target.subdir == '':
return ''
- directories = os.path.split(target.subdir)
- directories = list(filter(bool,directories)) #Filter out empty strings
-
- return '/'.join(['..']*len(directories))
+ directories = os.path.normpath(target.subdir).split(os.sep)
+ return os.sep.join(['..']*len(directories))
def special_quote(self, arr):
return ['&quot;%s&quot;' % i for i in arr]