Skip to content

Commit

Permalink
Fixed launcher overwriting env variables inappropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Oct 1, 2024
1 parent f31f6db commit 7434810
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7434810

Please sign in to comment.