diff options
-rw-r--r-- | authors.txt | 2 | ||||
-rw-r--r-- | vs2010backend.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/authors.txt b/authors.txt index 0a928d6..63f3bac 100644 --- a/authors.txt +++ b/authors.txt @@ -12,3 +12,5 @@ Robin McCorkell Axel Waggershauser Igor Gnatenko Hemmo Nieminen +mfrischknecht + 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] |