|
4 | 4 | from qtpy.QtWidgets import QApplication, QMainWindow, QFileDialog, QAction, QMessageBox
|
5 | 5 | from qtpy.QtCore import Qt, QTimer, Slot, QSize, QLibraryInfo, QCoreApplication
|
6 | 6 | from qtpy.QtGui import QKeySequence
|
7 |
| -from .utilities import IconFont, find_file, establish_widget_connections, close_widget_connections |
| 7 | +from .utilities import IconFont, find_file, establish_widget_connections, close_widget_connections, ACTIVE_QT_WRAPPER, QtWrapperTypes |
8 | 8 | from .pydm_ui import Ui_MainWindow
|
9 | 9 | from .display import Display, ScreenTarget, load_file, clear_compiled_ui_file_cache
|
10 | 10 | from .connection_inspector import ConnectionInspector
|
@@ -111,11 +111,14 @@ def __init__(
|
111 | 111 | QLibraryInfo.location(QLibraryInfo.BinariesPath),
|
112 | 112 | QLibraryInfo.location(QLibraryInfo.LibraryExecutablesPath),
|
113 | 113 | )
|
| 114 | + |
| 115 | + # look into mac and windows naming later |
| 116 | + executable_name = "designer" if ACTIVE_QT_WRAPPER == QtWrapperTypes.PYQT5 else "pyside6-designer" |
114 | 117 | for bin_path in possible_designer_bin_paths:
|
115 | 118 | if platform.system() == "Darwin":
|
116 | 119 | designer_path = os.path.join(bin_path, "Designer.app/Contents/MacOS/Designer")
|
117 | 120 | elif platform.system() == "Linux":
|
118 |
| - designer_path = os.path.join(bin_path, "designer") |
| 121 | + designer_path = os.path.join(bin_path, executable_name) |
119 | 122 | else:
|
120 | 123 | designer_path = os.path.join(bin_path, "designer.exe")
|
121 | 124 | if os.path.isfile(designer_path):
|
|
0 commit comments