This repository was archived by the owner on Oct 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +41
-8
lines changed Expand file tree Collapse file tree 8 files changed +41
-8
lines changed Original file line number Diff line number Diff line change 16
16
elif is_installed ("PySide2" ):
17
17
from PySide2 .scripts .pyside_tool import designer
18
18
else :
19
- sys .exit ("No rcc can be found in current Python environment." )
19
+ ERR_MSG = (
20
+ "No rcc can be found in the current Python environment. "
21
+ "Make sure the latest PySide6 or PySide2 is installed."
22
+ )
23
+ sys .exit (ERR_MSG )
20
24
sys .exit (designer ())
Original file line number Diff line number Diff line change 12
12
elif is_installed ("PySide6" ):
13
13
from PySide6 .scripts .pyside_tool import linguist
14
14
else :
15
- sys .exit ("No Qt Linguist can be found in current Python environment." )
15
+ ERR_MSG = (
16
+ "No Qt Linguist can be found in the current Python environment. "
17
+ "Make sure the latest PySide6 is installed."
18
+ )
19
+ sys .exit (ERR_MSG )
16
20
17
21
sys .exit (linguist ())
Original file line number Diff line number Diff line change 12
12
elif is_installed ("PySide6" ):
13
13
from PySide6 .scripts .pyside_tool import lrelease
14
14
else :
15
- sys .exit ("No lrelease can be found in current Python environment." )
15
+ ERR_MSG = (
16
+ "No lrelease can be found in the current Python environment. "
17
+ "Make sure the latest PySide6 is installed."
18
+ )
19
+ sys .exit (ERR_MSG )
16
20
sys .exit (lrelease ())
Original file line number Diff line number Diff line change 26
26
elif is_installed ("PyQt5" ):
27
27
from PyQt5 .pylupdate_main import main as lupdate
28
28
else :
29
- sys .exit ("No lupdate can be found in current Python environment." )
29
+ ERR_MSG = (
30
+ "No lupdate can be found in the current Python environment. "
31
+ "Make sure the latest PySide6, PySide2, PyQt6 or PyQt5 is installed."
32
+ )
33
+ sys .exit (ERR_MSG )
30
34
31
35
sys .exit (lupdate ())
Original file line number Diff line number Diff line change 12
12
elif is_installed ("PySide6" ):
13
13
from PySide6 .scripts .pyside_tool import qml
14
14
else :
15
- sys .exit ("No pyside6-qml can be found in current Python environment." )
15
+ ERR_MSG = (
16
+ "No pyside6-qml can be found in the current Python environment. "
17
+ "Make sure the latest PySide6 is installed."
18
+ )
19
+ sys .exit (ERR_MSG )
16
20
sys .exit (qml ())
Original file line number Diff line number Diff line change 12
12
elif is_installed ("PySide6" ):
13
13
from PySide6 .scripts .pyside_tool import qmlls
14
14
else :
15
- sys .exit ("No qmlls can be found in current Python environment." )
15
+ ERR_MSG = (
16
+ "No qmlls can be found in the current Python environment. "
17
+ "Make sure the latest PySide6 is installed. "
18
+ "Update configuration to disable qmlls integration if you don't need it."
19
+ )
20
+ sys .exit (ERR_MSG )
16
21
sys .exit (qmlls ())
Original file line number Diff line number Diff line change 20
20
elif is_installed ("PyQt5" ):
21
21
from PyQt5 .pyrcc_main import main as rcc
22
22
else :
23
- sys .exit ("No rcc can be found in current Python environment." )
23
+ ERR_MSG = (
24
+ "No rcc can be found in the current Python environment. "
25
+ "Make sure the latest PySide6, PySide2 or PyQt5 is installed."
26
+ )
27
+ sys .exit (ERR_MSG )
24
28
sys .exit (rcc ())
Original file line number Diff line number Diff line change 24
24
elif is_installed ("PyQt5" ):
25
25
from PyQt5 .uic .pyuic import main as uic
26
26
else :
27
- sys .exit ("No uic can be found in current Python environment." )
27
+ ERR_MSG = (
28
+ "No uic can be found in the current Python environment. "
29
+ "Make sure the latest PySide6, PySide2, PyQt6 or PyQt5 is installed."
30
+ )
31
+ sys .exit (ERR_MSG )
28
32
sys .exit (uic ())
You can’t perform that action at this time.
0 commit comments