Browse Source

Try resource dir as library path first

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.5
falkTX 1 year ago
parent
commit
214a5aa77e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      source/frontend/carla_app.py

+ 6
- 1
source/frontend/carla_app.py View File

@@ -68,8 +68,13 @@ class CarlaApplication():
path = "H:\\PawPawBuilds\\targets\\win32\\lib\\qt5\\plugins"
QApplication.addLibraryPath(path)

# Try resource dir as library path first
if os.path.exists(os.path.join(pathResources, "styles", "carlastyle.json")):
QApplication.addLibraryPath(pathResources)
stylesDir = pathResources

# Use binary dir as library path
if os.path.exists(pathBinaries):
elif os.path.exists(pathBinaries):
QApplication.addLibraryPath(pathBinaries)
stylesDir = pathBinaries



Loading…
Cancel
Save