From 27a7e538df37f9a2f2a4c1584cc63704f165ee11 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Sun, 15 Feb 2026 16:48:53 -0600 Subject: [PATCH] Launcher: run init_logging before importing from worlds (#5402) --- Launcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Launcher.py b/Launcher.py index 89421ff305..cffd96b85d 100644 --- a/Launcher.py +++ b/Launcher.py @@ -31,6 +31,10 @@ import settings import Utils from Utils import (init_logging, is_frozen, is_linux, is_macos, is_windows, local_path, messagebox, open_filename, user_path) + +if __name__ == "__main__": + init_logging('Launcher') + from worlds.LauncherComponents import Component, components, icon_paths, SuffixIdentifier, Type @@ -493,7 +497,6 @@ def main(args: argparse.Namespace | dict | None = None): if __name__ == '__main__': - init_logging('Launcher') multiprocessing.freeze_support() multiprocessing.set_start_method("spawn") # if launched process uses kivy, fork won't work parser = argparse.ArgumentParser(