mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29:00 +08:00
Print backtrace on console when we are not running a py2exe/py2app build
This commit is contained in:
parent
792c3426f8
commit
79bd590656
@ -7,9 +7,11 @@ from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, QCoreApplication
|
|||||||
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit
|
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit
|
||||||
|
|
||||||
def show(type, value, tb):
|
def show(type, value, tb):
|
||||||
|
if not hasattr(sys, "frozen"):
|
||||||
|
traceback.print_exception(type, value, tb)
|
||||||
|
|
||||||
application = QCoreApplication.instance()
|
application = QCoreApplication.instance()
|
||||||
if not application:
|
if not application:
|
||||||
traceback.print_exception(type, value, tb)
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
dialog = QDialog()
|
dialog = QDialog()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user