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 1616 elif is_installed ("PySide2" ):
1717 from PySide2 .scripts .pyside_tool import designer
1818 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 )
2024 sys .exit (designer ())
Original file line number Diff line number Diff line change 1212 elif is_installed ("PySide6" ):
1313 from PySide6 .scripts .pyside_tool import linguist
1414 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 )
1620
1721 sys .exit (linguist ())
Original file line number Diff line number Diff line change 1212 elif is_installed ("PySide6" ):
1313 from PySide6 .scripts .pyside_tool import lrelease
1414 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 )
1620 sys .exit (lrelease ())
Original file line number Diff line number Diff line change 2626 elif is_installed ("PyQt5" ):
2727 from PyQt5 .pylupdate_main import main as lupdate
2828 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 )
3034
3135 sys .exit (lupdate ())
Original file line number Diff line number Diff line change 1212 elif is_installed ("PySide6" ):
1313 from PySide6 .scripts .pyside_tool import qml
1414 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 )
1620 sys .exit (qml ())
Original file line number Diff line number Diff line change 1212 elif is_installed ("PySide6" ):
1313 from PySide6 .scripts .pyside_tool import qmlls
1414 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 )
1621 sys .exit (qmlls ())
Original file line number Diff line number Diff line change 2020 elif is_installed ("PyQt5" ):
2121 from PyQt5 .pyrcc_main import main as rcc
2222 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 )
2428 sys .exit (rcc ())
Original file line number Diff line number Diff line change 2424 elif is_installed ("PyQt5" ):
2525 from PyQt5 .uic .pyuic import main as uic
2626 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 )
2832 sys .exit (uic ())
You can’t perform that action at this time.
0 commit comments