From f1f95412250e2bf59066cdc4139caf3a047ce058 Mon Sep 17 00:00:00 2001 From: n9Mtq4 Date: Mon, 5 Oct 2020 16:59:02 -0400 Subject: [PATCH] Support output files in different folders --- Startup/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Startup/setup.py b/Startup/setup.py index 28ad40f..97b401f 100755 --- a/Startup/setup.py +++ b/Startup/setup.py @@ -162,5 +162,5 @@ def outputs_filenames(args: Args): :param args: the Args """ suffix = '.mkv' - args.output_file = Path(f'{args.output_file.stem}{suffix}') if args.output_file \ - else Path(f'{args.input.stem}_{args.encoder}{suffix}') + args.output_file = Path(args.output_file).with_suffix(suffix) if args.output_file \ + else Path(f'{args.input.stem}_{args.encoder}{suffix}')