File tree Expand file tree Collapse file tree 2 files changed +0
-275
lines changed
Expand file tree Collapse file tree 2 files changed +0
-275
lines changed Original file line number Diff line number Diff line change 2929"""
3030
3131
32- from qgis .PyQt .QtCore import QCoreApplication
33- from qgis .PyQt .QtWidgets import QMessageBox
34-
35- from ThRasE .utils .extra_deps import load_install_extra_deps , WaitDialog
36-
37-
38- def pre_init_plugin (iface ):
39- app = QCoreApplication .instance ()
40- parent = iface .mainWindow ()
41- dialog = None
42- log = ''
43- try :
44- for msg_type , msg_val in load_install_extra_deps ():
45- app .processEvents ()
46- if msg_type == 'log' :
47- log += msg_val
48- elif msg_type == 'needs_install' :
49- dialog = WaitDialog (parent , 'ThRasE - installing dependencies' )
50- elif msg_type == 'install_done' :
51- dialog .accept ()
52- except Exception as e :
53- if dialog :
54- dialog .accept ()
55- QMessageBox .critical (parent , 'ThRasE - installing dependencies' ,
56- 'An error occurred during the installation of Python packages. ' +
57- 'Click on "Stack Trace" in the QGIS message bar for details.' )
58- raise RuntimeError ('\n ThRasE: Error installing Python packages. Read install instruction: '
59- 'https://smbyc.github.io/ThRasE\n Log:\n ' + log ) from e
60-
61-
6232# noinspection PyPep8Naming
6333def classFactory (iface ): # pylint: disable=invalid-name
6434 """Load ThRasE class from file ThRasE.
6535
6636 :param iface: A QGIS interface instance.
6737 :type iface: QgsInterface
6838 """
69- # load/install extra python dependencies
70- #pre_init_plugin(iface)
71-
72- #
7339 from .thrase import ThRasE
7440 return ThRasE (iface )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments