Try to fix the "WindowsError: [Error 2] The system cannot find the file specified"

This commit is contained in:
Bertrand Bellenot 2016-08-24 17:27:13 +02:00 committed by sftnight
parent 87fb1cc7f1
commit ba7c310d93

View File

@ -605,7 +605,7 @@ def tarball():
box_draw("Compress binaries into a bzip2 tarball")
tar = tarfile.open(prefix + '.tar.bz2', 'w:bz2')
print('Creating archive: ' + os.path.basename(prefix) + '.tar.bz2')
tar.add(prefix, arcname=os.path.basename(prefix))
tar.add(prefix + '.tar.bz2', arcname=os.path.basename(prefix))
tar.close()
gInCleanup = False