1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 00:03:33 +00:00

Fix for arguments not passed correctly to child process.

This commit is contained in:
Louis Vézina 2018-10-16 21:55:30 -04:00
parent e124e1c3fd
commit 376ee719fb

View file

@ -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 <config_directory>'
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__)