From 376ee719fbc0a98c1208871c256280960fb76142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 16 Oct 2018 21:55:30 -0400 Subject: [PATCH] Fix for arguments not passed correctly to child process. --- bazarr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bazarr.py b/bazarr.py index 44511a4b1..405158a2b 100644 --- a/bazarr.py +++ b/bazarr.py @@ -16,6 +16,9 @@ except getopt.GetoptError: sys.exit(2) for opt, arg in opts: arguments.append(opt) + if arg != '': + arguments.append(arg) + if opt == '-h': print 'bazarr.py -h --no-update --config ' sys.exit() @@ -23,8 +26,6 @@ for opt, arg in opts: no_update = True elif opt in ("--config"): config_dir = arg - elif arg != '': - arguments.append(arg) dir_name = os.path.dirname(__file__)