python 3.5 compat

This commit is contained in:
Andrei Alexeyev 2019-09-24 01:40:09 +03:00
parent f51f8ad574
commit e63e07913f
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, '.', args.prefix)
archive = shutil.make_archive(args.output, args.format, '.', str(args.prefix))
else:
archive = shutil.make_archive(args.output, args.format, install_dir)
archive = shutil.make_archive(args.output, args.format, str(install_dir))
archive = Path(archive)
archive.rename(args.output)