From 05d80228880e6eb0759d493e37bf75f9840dd14c Mon Sep 17 00:00:00 2001 From: MoTrix <112804896+Mo-Tx@users.noreply.github.com> Date: Sat, 12 Jul 2025 00:38:50 +0100 Subject: [PATCH] Add platform detection and define LINUX constant early in carla-plugin Imported the platform module and defined the LINUX constant at the top of the script, before any usage. This ensures the LINUX flag is correctly set before it is referenced later in the code, preventing potential runtime errors. --- source/frontend/carla-plugin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/frontend/carla-plugin b/source/frontend/carla-plugin index cf2a9dbc1..8a2fb4720 100755 --- a/source/frontend/carla-plugin +++ b/source/frontend/carla-plugin @@ -5,6 +5,9 @@ # ------------------------------------------------------------------------------------------------------------ # Imports (Global) +import platform +LINUX = platform.system() == "Linux" + from qt_compat import qt_config if qt_config == 5: