From cbc9252650a99a5ec69ea3943dc5e072a95065f5 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 5 Nov 2012 15:55:55 +1100 Subject: [PATCH] Fix Windows paths with the list_config call. --- sb/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sb/build.py b/sb/build.py index b4f91de..2ee0e68 100644 --- a/sb/build.py +++ b/sb/build.py @@ -434,10 +434,10 @@ class build: def list_configs(opts, _defaults, ext = '.cfg'): configs = [] for cp in opts.expand('%{_configdir}', _defaults).split(':'): - print 'Examining: %s' % (os.path.abspath(cp)) - configs += glob.glob(os.path.join(cp, '*%s' % (ext))) + print 'Examining: %s' % (path.host(path.abspath(cp))) + configs += glob.glob(path.host(path.join(cp, '*%s' % (ext)))) for c in sorted(configs): - config = os.path.basename(c) + config = path.basename(c) if config.endswith(ext): config = config[:0 - len(ext)] print ' ', config