From 74348101800438a9d64d1a455e98208545e011b3 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 30 Sep 2024 23:37:02 -0600 Subject: [PATCH] Fixed launcher overwriting env variables inappropriately --- launcher.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launcher.py b/launcher.py index 6529a8c..3e29a30 100644 --- a/launcher.py +++ b/launcher.py @@ -132,8 +132,10 @@ def main(): os.execl(sys.executable, sys.executable, f"launcher{script_name}", *new_args) # Set environment variables based on the parsed arguments - os.environ['DEBUG'] = str(args.debug) - os.environ['APPEND'] = str(args.append) + if convert_to_bool(os.environ['DEBUG']) not True: + os.environ['DEBUG'] = str(args.debug) + if convert_to_bool(os.environ['APPEND']) not True: + os.environ['DEBUG'] = str(args.append) if args.setup_bazarr: prompt_and_save_bazarr_env_variables()