Browse Source

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.
pull/1996/head
MoTrix GitHub 3 months ago
parent
commit
05d8022888
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      source/frontend/carla-plugin

+ 3
- 0
source/frontend/carla-plugin View File

@@ -5,6 +5,9 @@
# ------------------------------------------------------------------------------------------------------------
# Imports (Global)

import platform
LINUX = platform.system() == "Linux"

from qt_compat import qt_config

if qt_config == 5:


Loading…
Cancel
Save