diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-04-10 18:37:39 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-04-10 18:37:39 +0300 |
commit | a8803faf0477260c431df2b47e36641b45d41af0 (patch) | |
tree | e1cdbaa4327d2e8f5187e26e832297f113b723c8 /vs2010backend.py | |
parent | e240c4abaa8049bfe1e50a96a4e851aef1a417f8 (diff) | |
download | meson-a8803faf0477260c431df2b47e36641b45d41af0.zip meson-a8803faf0477260c431df2b47e36641b45d41af0.tar.gz meson-a8803faf0477260c431df2b47e36641b45d41af0.tar.bz2 |
Vs2010 fix from mfrischknecht. Closes #98.
Diffstat (limited to 'vs2010backend.py')
-rw-r--r-- | vs2010backend.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vs2010backend.py b/vs2010backend.py index 062e09a..c2f07bd 100644 --- a/vs2010backend.py +++ b/vs2010backend.py @@ -143,7 +143,11 @@ class Vs2010Backend(backends.Backend): def target_to_build_root(self, target): if target.subdir == '': return '' - return '/'.join(['..']*(len(os.path.split(target.subdir))-1)) + + directories = os.path.split(target.subdir) + directories = list(filter(bool,directories)) #Filter out empty strings + + return '/'.join(['..']*len(directories)) def special_quote(self, arr): return ['"%s"' % i for i in arr] |