2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Simplify ././path when building the Waf file

This commit is contained in:
Thomas Nagy 2015-10-13 22:48:14 +02:00
parent bd0008f252
commit b91787d888
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -255,7 +255,7 @@ def create_waf(self, *k, **kw):
dd = os.path.join('waflib', d)
for k in os.listdir(dd):
if k == '__init__.py':
files.append(os.path.join(dd, k))
files.append(os.path.normpath(os.path.join(dd, k)))
continue
if d == 'Tools' and Options.options.coretools != 'default':
if not k in coretools:
@ -264,7 +264,7 @@ def create_waf(self, *k, **kw):
if not k in add3rdparty:
continue
if k.endswith('.py'):
files.append(os.path.join(dd, k))
files.append(os.path.normpath(os.path.join(dd, k)))
#open a file as tar.[extension] for writing
tar = tarfile.open('%s.tar.%s' % (mw, zipType), "w:%s" % zipType)