2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-27 10:40:02 +01:00

Issue 1110

This commit is contained in:
Thomas Nagy 2012-03-23 02:43:04 +01:00
parent 154bc0145e
commit 8481ee95b2

View File

@ -760,9 +760,9 @@ class msvs_generator(BuildContext):
self.collect_dirs()
default_project = getattr(self, 'default_project', None)
def sortfun(x):
if self.name == default_project:
if x.name == default_project:
return ''
return getattr(x, 'path', None) and x.path.abspath() or self.name
return getattr(x, 'path', None) and x.path.abspath() or x.name
self.all_projects.sort(key=sortfun)
def write_files(self):