From e63e07913f351e80ac3a92f77fb67971bbafdc88 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Tue, 24 Sep 2019 01:40:09 +0300 Subject: [PATCH] python 3.5 compat --- scripts/gen-dist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gen-dist.py b/scripts/gen-dist.py index 3f20d959..886ad01e 100755 --- a/scripts/gen-dist.py +++ b/scripts/gen-dist.py @@ -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)