build-calibre dir layout changed slightly

This commit is contained in:
Kovid Goyal 2017-02-12 11:31:49 +05:30
parent 063c43e871
commit 9445fae589
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -30,7 +30,10 @@ def build_single(which, bitness, shutdown=True):
dist = os.path.join(build_calibre, 'build', which)
if bitness:
dist = os.path.join(dist, bitness)
dist = os.path.join(dist, 'dist')
for q in 'dist sw/dist'.split():
if os.path.exists(os.path.join(dist, q)):
dist = os.path.join(dist, q)
break
for x in os.listdir(dist):
print(x)
dest = os.path.join(base, 'dist', x)