diff --git a/source/frontend/carla_app.py b/source/frontend/carla_app.py index 7c9a291acf..9c457ed2de 100644 --- a/source/frontend/carla_app.py +++ b/source/frontend/carla_app.py @@ -68,8 +68,13 @@ def __init__(self, appName = "Carla2", libPrefix = None): 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