Browse Source

Gracefully handle cases where PYQT_VERSION cannot be imported

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 5 years ago
parent
commit
497f48d733
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      source/frontend/carla_host.py

+ 5
- 1
source/frontend/carla_host.py View File

@@ -21,7 +21,11 @@

import json

from PyQt5.Qt import PYQT_VERSION
try:
from PyQt5.Qt import PYQT_VERSION
except ImportError:
PYQT_VERSION = 0x50600

from PyQt5.QtCore import QT_VERSION, qCritical, QEventLoop, QFileInfo, QModelIndex, QPointF, QTimer, QEvent
from PyQt5.QtGui import QImage, QPalette, QBrush
from PyQt5.QtWidgets import QAction, QApplication, QInputDialog, QFileSystemModel, QListWidgetItem, QGraphicsView, QMainWindow


Loading…
Cancel
Save