python 3.5 compat again

This commit is contained in:
Andrei Alexeyev 2019-09-24 01:43:38 +03:00
parent e63e07913f
commit 8137daba9e
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -71,9 +71,9 @@ def main(args):
if args.prefix is not None:
os.chdir(str(install_dir.parent))
install_dir.rename(install_dir.parent / args.prefix)
archive = shutil.make_archive(args.output, args.format, '.', str(args.prefix))
archive = shutil.make_archive(str(args.output), args.format, '.', str(args.prefix))
else:
archive = shutil.make_archive(args.output, args.format, str(install_dir))
archive = shutil.make_archive(str(args.output), args.format, str(install_dir))
archive = Path(archive)
archive.rename(args.output)